MATLAB Answers

farhat
0

How to crop image?

Asked by farhat
on 3 Aug 2013
I want to crop the image in matlab, so the image just display the characters "*H 43 L*" and "*B 411 PJK*".
And the "*2 points*" and characters "*04.16 _*" in below are cropped.
I want that the displayed objects is only object from the right side to the left side.
And here is my code..
[labelled jml] = bwlabel(citra_fill);
Iprops=regionprops(labelled,'BoundingBox','Image');
a=~citra_fill;
[f c]=find(a);
lmaxc=max(c);lminc=min(c);
lmaxf=max(f);lminf=min(f);
imgn=a(lminf:lmaxf,lminc:lmaxc);%Crops image
Any suggestion?

  0 Comments

Sign in to comment.

0 Answers