Clip a stack of tiff files

6 views (last 30 days)
SimonW
SimonW on 5 Feb 2015
Edited: SimonW on 5 Feb 2015
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!