Ask Your Question
0

OpenCv code to find the color having largest area in the Image.

asked 2013-01-04 00:31:22 -0600

Need Help.. My_Problem:=> I'm working on C++ OpenCv & I'm very new to it. I wants to find the color having largest area in the Image. Please help..!! Thanks...!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-01-04 04:08:54 -0600

Haris gravatar image

updated 2013-01-04 04:11:40 -0600

Sometimes Histogram Calculation help you, where you can calculate histogram of each channel of your image. But it will consider the entire image for pixel count and you cannot consider an isolated area as your target area. If your target is an isolated area threshold the image with your each colour range and find the area of thresholded contour.

edit flag offensive delete link more

Comments

Thanks Haris Moonamkunnu..! I'll try It..!!

Dnyanesh gravatar imageDnyanesh ( 2013-01-04 05:30:23 -0600 )edit

Question Tools

Stats

Asked: 2013-01-04 00:31:22 -0600

Seen: 430 times

Last updated: Jan 04 '13