Clip a stack of tiff files
6 views (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
Categories
Find more on Import, Export, and Conversion 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!