How do I extract columns from multiple photographs and stitch them together?
Show older comments
Hi, I'm a new user of MATLAB aiming to do some image analysis - I'd be very grateful for any help.
I have ~100 successive photographs of an experiment that I wish to process. I would like to extract a central pixel column from each photograph and then stitch them these columns together to form a new image.
What would be the best way to go about this please?
Thanks! Will
Accepted Answer
More Answers (1)
Sean de Wolski
on 12 Aug 2011
First you have to get the images in to MATLAB.
FAQ4.12 Should help with that.
Then you need to extract the center pixel of each and concatenate. Let's say we have a 100x100x100 stack of images (each image is 100x100 with 100 images)
X = rand(100,100,100);
Xmiddle = reshape(X(floor(size(X,1)/2),floor(size(X,2)/2),:),1,[]);
Xmiddle will not be a row vector with the floor of the closest to center pixel of each image. If there RGB images, a second level of reshaping is necessary.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!