i would ask how I can draw line pass through the center of image then across whole image end to end
figure ,imshow(whole_image) figure,imshow(whole_image) whole_image = imresize(whole_image,[500 750]); se=strel('disk',50); img_2=imdilate(whole_image,se); di_imag = imdilate(whole_image,se); imshow(di_imag), title('dilated') rstats_w = regionprops(whole_image, 'Centroid'); Center_word =rstats_w.Centroid;%calculate center of word
hold on; p1 = [Center_word(1) 0]; p2 = [Center_word(1) 750] plot (p1,p2)
Best Answer