Question
I need help with Histogram in python. please include output. 10-bin histogram from red, blue, green channels and put them side-by-side so pixel dimension becomes
I need help with Histogram in python. please include output.
10-bin histogram from red, blue, green channels and put them side-by-side so pixel dimension becomes 30 from 2500X3
below is a pseudocode
read a color image := img
gray_image = ConvertToGray (img)
red, green, blue = ColorExtract (img)
hist_red = histogram (red, 10)
hist_green = histogram (green, 10)
hist_blue = histogram (blue, 10)
hist_gray = histogram (gray_image, 10)
// put them side-by-side
hist_data = np.concatenate (hist_red, hist_green, hist_blue)
img_db_hist_color.append (hist_data)
img_db_hist_gray.append (hist_gray)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started