Clip a stack of tiff files

I have a stack of tiff files from a CT scanner. Within the stack are a number of objects that I need to clip out into individual stacks.
I have a control file for the main stack formatted as;
ID, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY, BottomSlice, TopSlice
The control file is a simple space delimited text file
Where ID is the object ID (actually a specimen number). I need to create a directory of 16 bit tiffs for each of the objects defined in the control file with the directory name the object ID.
The files in the original directory are named XXX0001 to XXnnnn where XX is the original scan name and 0001 to nnnn are the slices starting from the bottom of the stack.
Any help / tips would be appreciated!
Simon

Réponses (0)

Question posée :

le 5 Fév 2015

Modifié(e) :

le 5 Fév 2015

Community Treasure Hunt

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

Start Hunting!

Translated by