mirror of
https://github.com/jlengrand/Tippy.git
synced 2026-03-10 08:51:16 +00:00
Merge branch 'master' of https://github.com/jlengrand/Tippy
Conflicts: examples/histogram_display.py tippy/statistics.py tippy/tests/test_statistics.py
This commit is contained in:
@@ -18,13 +18,3 @@ To end the script, the user simply needs to hit a keyboard key with the input
|
||||
image in the foreground.
|
||||
'''
|
||||
|
||||
import cv
|
||||
import tippy.statistics as st
|
||||
import tippy.display_operations as do
|
||||
|
||||
img_name = "tippy/data/tippy.jpg"
|
||||
img = cv.LoadImage(img_name, cv.CV_LOAD_IMAGE_COLOR)
|
||||
hist = st.Histogram(img)
|
||||
|
||||
imgs = hist.to_images() # list of Red, Green, Blue channels
|
||||
do.display_single_image(imgs[2], "Blue channel histogram of the tippy image")
|
||||
|
||||
Reference in New Issue
Block a user