Fct_Contour_Compute

 

Compute all the contours on all the selected frames using all the available threads.

 

 

Syntax

 

int  Fct_Contour_Compute(

          unsigned int mode,

          unsigned short o_x,

          unsigned short o_y,

          unsigned short o_z

) ;

 

 

Parameters

 

mode

          Control the formation of the contour loops.

 

SHELL_MODE_LOOP

If the TAG values are on the border of the frame, the loop will be closed, otherwise it will stay open.

 

SHELL_MODE_INSIDE

Place a border between a TAG and a TAG value that is greater than it.

 

SHELL_MODE_OUTSIDE

Place a border betweena TAG value and a TAG value that is smaller than it.

 

o_x, o_y, o_z

Sub-sampling in horizontal, vertical and depth direction. 1 mean no sub-sampling (each pixel is used).

 

 

Return value

 

This function return 1.

 

 

Remarks

 

The function will use the multi-thread dispatching mechanism to start the Fct_Contour_Create function for all selected frames.

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

 

Example

 

Computing the contours in the shell_ctrl.cpp file of the "Shell_TomoVision" module.

 

int          Ctrl_Update( UInt64 flag )

{

          ...

          // --- We changed the TAG Select flag ---

          if ( flag & (UPDATE_SELECTION | UPDATE_USER_1) ) {

 

              Fct_Contour_Compute( Shell_Mode | SHELL_MODE_SINGLE_GROUP,

                                        Shell_SubSampling[0]+1,

                                        Shell_SubSampling[1]+1,

                                        Shell_SubSampling[2]+1 ) ;

              Fct_Redraw( REDRAW_ALL_3D ) ;

          }

          ...

}

 

See also

 

Fct_Contour_Create

Fct_Contour_Free