Flips 2D slice image of an 3D vol image (mirror transformation).
Usage: volFlip <volFileName> –imagePlane 0 1 –flipDimension 0 <volOutputFileName> (vol, longvol, p3d format)
Allowed options are :
Positionals:
1 TEXT:FILE REQUIRED Input vol filename.
2 TEXT:FILE REQUIRED Output vol filename.
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED Input vol filename.
--imagePlane UINT=[0,1] x 2 arg= {0,1,2} x {0,1,2} defines the axis of the slice image which will be transformed (by default arg= 0 1 i.e. the slice image defined in the X,Y plane (Z=cst)
--flipDimension UINT=0 specify which axis will be used to apply the flip.
-o,--output TEXT=result.vol Output filename.
Example:
$ volFlip --imagePlane 0 1 --flipDimension 0 -i ${
DGtal}/examples/samples/lobster.vol -o flippedXxyLobster.vol
You should obtain such a result:
(a) source image (b) flipped version.
- See also
- volFlip.cpp