All right, so i've developed my algorithm for spectral comparison in MATLAB. I read the images into matlab and convert them to grayscale. Now what i want to do have the program scan the images for black pixels. so basically
numbkpixels = 0;
while (in picture range)
if pixel = black
numbkpixels = numbxpixels + 1
else
go to next pixel
return numbkpixels
any ideas?
numbkpixels = 0;
while (in picture range)
if pixel = black
numbkpixels = numbxpixels + 1
else
go to next pixel
return numbkpixels
any ideas?