PANDORE Version 6 |
GREYC-IMAGE |
pgetslice
Gets slice from 3D image.
Synopsis
pgetslice slice [-m mask] [im_in|-] [im_out|-]
Description
pgetslice builds the new 2D image im_out
from the specified slice of the input 3D image im_in.
The result image im_out is of the same type
as the input image.
Parameters
- slice specifies the index of
the slice to be get. It is an integer
between 0 and the total number of im_in slice minus 1.
If slice is < 0 or > total number
then the last slice is extracted.
Inputs
- im_in: a 3D image or 3D region map.
Outputs
- im_out: a 2D image of the same type as the input image.
Result
Returns SUCCESS or FAILURE.
Examples
Gets slice no. 10 of the 3D image a3d.pan (the 11th slice):
pgetslice 10 a3d.pan a2d.pan
See also
Utility,
psetslice,
paddslice
C++ prototype
Errc PGetSlice( const Img3duc &im_in, Img2duc &im_out, long slice );
Version française
Construction d'une image 2D avec un plan d'une image 3D.
Author: Régis Clouard