%point location
row=find(sum(img8,2)==0,1,'last')+1;col=find(img8(row,:)~=0);row=row(ones(size(col)));Points=[row(:) col(:)];imshow(img8);hold onplot(Points(:,2),Points(:,1)','rp','MarkerSize',12)a=text(Points(1,2),Points(1,1),['This is (col,row)(',num2str(Points(1,2)),',',num2str(Points(1,1)),')']);set(a, 'FontName', 'Arial' ,'FontWeight', 'bold', 'FontSize', 12,'Color', 'blue');hold off
MATLAB: How to mark the highest white pixel through bottom to the top? using grayscale image.
image acquisitionimage analysisimage processing
Best Answer