how to reconstruct an image?
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
hi.. can you help me? I've these code, example :
I=imread('filename');
image_top_left = I(1:256,1:256);
image_top_right = I(1:256,257:512);
image_bottom_left = I(257:512,1:256);
image_bottom_right = I(257:512,257:512);
then i'll change its position, example :
image_top_left=image_bottom_left;
  image_top_right=image_bottom_right;
after all, i want it'll be show as one image again...how can i get it? thank you
0 commentaires
Réponse acceptée
  Image Analyst
      
      
 le 4 Mai 2013
        Stitch them together in whatever order you want. The pattern is
[upperLeft, upperRight; lowerLeft, lowerRight]
To do what you tried to do, you'd do this:
scrambledImage = [image_bottom_left, image_bottom_right; image_top_left, image_top_right];
so that now the bottom left of the old image is the upper left of the new image, etc.
0 commentaires
Plus de réponses (1)
  Matt J
      
      
 le 4 Mai 2013
        You would do things like this:
 I(1:256,257:512)=image_bottom_right; %image_top_right=image_bottom_right
0 commentaires
Voir également
Catégories
				En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


