How do I extract columns from multiple photographs and stitch them together?

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

Thank you Sean de for your response - found your advice very helpful.
I have written a short piece of code to do this now and include it below for others:
fileFolder = fullfile('C:','Users','Will','Desktop','experiments 11_08_2011','2');
dirOutput = dir(fullfile(fileFolder,'DSC_*.jpg'));
fileNames = {dirOutput.name}';
numFrames = numel(fileNames);
for p=1:numFrames
I=imread(fullfile('C:','Users','Will','Desktop','experiments 11_08_2011','2',fileNames{p}));
E(:,p,:)=I(360:1650,1374,:);
end
imshow(E)

More Answers (1)

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

Tags

No tags entered yet.

Asked:

on 12 Aug 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!