cut some images into same size and i can set (x1,y1), (x2,y2) diagonal
Mostra commenti meno recenti
Hello guys, how can i cut some images into same size and i can set (x1,y1) dan (x2,y2) for images cutting.

Risposte (1)
Rect = [x1 y1 x2-x1 y2-y1] ;
I1 = imcrop(I,Rect) ;
Rect should have initial indices and length, breadth.
Also you can use:
I1 = I(x1:x2,y1:y2,:) ;
Categorie
Scopri di più su Get Started with Computer Vision Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!