problem in cropping image by using imcrop function.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
fred bnm
am 6 Jul. 2016
Beantwortet: Image Analyst
am 6 Jul. 2016
Hi, i have an image in size of [960 1440]. i want cropping rectangle in the center of image. my desire output after cropping = image in size [960 960] in the center of original image.please guide me. my code :
a = ones(960 1440);
[m,n] = size(a);
%center of image = [m/2 n/2]
cropped = imcrop(a,[480 480 m/2 n/2);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!