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

1 次查看(过去 30 天)
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 ^^

采纳的回答

Image Analyst
Image Analyst 2014-10-20
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 个评论
Image Analyst
Image Analyst 2014-10-21
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modify Image Colors 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by