Hello all! I am tasked with identifying black markings on this gray surface. My current plan is to identify the markings and classify them using their intensity values in relation to the gray surface. However, I am having trouble because the gray surface image is not uniformly colored and the markings are also different shades of grey. If anyone has any ideas as to how I can go about this, that would be great!
Here is my code so far: clc;
rect = [70 0 570 478];rect2 = [0 0 530 478];I = imread('test2.jpg');I = imcrop(I, rect);I = imcrop(I, rect2);H = fspecial('unsharp');I = imfilter(I,H,'replicate');I = rgb2gray(I);figureimtool(I);I(I>=90)=255;I(I<80)=20;figureimshow(I);
Best Answer