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

조회 수: 1 (최근 30일)
Saroj Boonprom
Saroj Boonprom 2014년 10월 20일
댓글: Image Analyst 2014년 10월 21일
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
Saroj Boonprom
Saroj Boonprom 2014년 10월 21일
I make HSV Picture :) and create black line =-=
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