PANDORE Version 6 GREYC-IMAGE

premoveslice



Removes slice to 3D image.



Synopsis

premoveslice direction [-m mask] [im_in1|-] [im_out1|-] [im_out2|-]

Description

premoveslice removes a 2D image from the end or the beginning of a 3D image. The 2D image im_out2 is extracted from the beginning if the parameter direction is negative or from the end if it is positive. The new image im_out1 has one slice less than the input image im_in1.

The last 3D image can be casted to 2D image with operator pim3d22d.

The result image im_out is of the same type as the two input images.

For region map, it may be judicious to relabel the regions (see plabeling).

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE in case of bad input or when 3D image is one slice depth.

Examples

Removes a2d.pan to the end of the a3d.pan:

   premoveslice 1 a3d.pan b3d.pan a2d.pan

See also

Utility, pgetslice, paddslice, pim3d22d

C++ prototype

Errc PRemoveSlice( const Imx3d &im_in1, const Imx2d &im_out1, Imx3d &im_out2, int direction );

Version française

Suppression d'un plan 2D dans une image 3D.


Author: Régis Clouard