Help me please ^^ .I need to check pen's color on image

1 view (last 30 days)
Excute me, I need your help. Anyone can give me some algorithm or some idea for check blue color of pen on this image? I need to check blue color cross that name on this image.if that name crossed by blue's pen color I provide that name is absences ^^

Accepted Answer

Image Analyst
Image Analyst on 20 Oct 2014
It should be an easy adaptation of one of the color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
I don't know what "I provide that name is absences" means but I guess you just need to see if some name, presumably written black, has blue ink on top of it. A simple way would be to just convert to hsv color space and look for any pixels with a hue in the blue range. Post your image. Also let us know why you're doing this, for example it's a class assignment, needed for your Ph.D. work or your company, or whatever.
  3 Comments
Saroj Boonprom
Saroj Boonprom on 21 Oct 2014
I make HSV Picture :) and create black line =-=
Image Analyst
Image Analyst on 21 Oct 2014
My code will find them. You just need to combine the channels. You need hue in a certain range, and probably high saturation values and low "value image" values. That will get just the pen marks and not include white pixels that are blue hue, like pixels with RGB values of [230, 230, 232] which is evidently what you're picking up in the white areas. My demo goes into how you can combine channels to carve out exactly the part of the 3D color gamut that you need.

Sign in to comment.

More Answers (0)

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!