how to separate the image given below
Mostra commenti meno recenti

i want to separate the image in four parts
Risposte (2)
Image Analyst
il 12 Mar 2015
How about
upperLeft = grayImage(1:rows/2, 1:columns/2);
and so on?
4 Commenti
tina jain
il 12 Mar 2015
Image Analyst
il 12 Mar 2015
Modificato: Image Analyst
il 12 Mar 2015
tina, what did you call your image variable? grayImage was just an example - you were supposed to replace it with actual variables.
[rows, columns, numberOfColorChannels] = size(whateverYourImageIsCalled);
r1 = int32(rows/2);
c1 = int32(columns/2);
r2 = r1+1;
c2 = c1+1;
upperLeft = whateverYourImageIsCalled(1:r1, 1:c1);
upperRight = whateverYourImageIsCalled(1:r1, c2:end);
lowerLeft = whateverYourImageIsCalled(r2:end, 1:c1);
lowerRight = whateverYourImageIsCalled(r2:end, c2:end);
tina jain
il 12 Mar 2015
tina jain
il 12 Mar 2015
Categorie
Scopri di più su Image Segmentation and Analysis in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!