HALCON Reference Manual 10.0.2
Table of Contents / 3D Reconstruction / Multi-View Stereo ClassesClassesClasses | | | Operators

get_stereo_model_paramT_get_stereo_model_paramget_stereo_model_paramGetStereoModelParamGetStereoModelParam (Operator)

Name

get_stereo_model_paramT_get_stereo_model_paramget_stereo_model_paramGetStereoModelParamGetStereoModelParam — Get stereo model parameters.

Signature

get_stereo_model_param( : : StereoModelID, ParamName : ParamValue)

Herror T_get_stereo_model_param(const Htuple StereoModelID, const Htuple ParamName, Htuple* ParamValue)

Herror get_stereo_model_param(const HTuple& StereoModelID, const HTuple& ParamName, HTuple* ParamValue)

HTuple HStereoModel::GetStereoModelParam(const HTuple& ParamName) const

void HOperatorSetX.GetStereoModelParam(
[in] VARIANT StereoModelID, [in] VARIANT ParamName, [out] VARIANT* ParamValue)

VARIANT HStereoModelX.GetStereoModelParam([in] VARIANT ParamName)

static void HOperatorSet.GetStereoModelParam(HTuple stereoModelID, HTuple paramName, out HTuple paramValue)

HTuple HStereoModel.GetStereoModelParam(HTuple paramName)

HTuple HStereoModel.GetStereoModelParam(string paramName)

Description

The operator get_stereo_model_paramget_stereo_model_paramget_stereo_model_paramGetStereoModelParamGetStereoModelParam can be used to inspect diverse parameters of the stereo model StereoModelIDStereoModelIDStereoModelIDStereoModelIDstereoModelID by specifying their names in ParamNameParamNameParamNameParamNameparamName and getting their values in ParamValueParamValueParamValueParamValueparamValue. Two types of parameters can be inspected with this operator - general and specific for surface reconstruction. Note that no specific parameters are provided for 3D point stereo reconstruction.

All parameters that can be set with set_stereo_model_paramset_stereo_model_paramset_stereo_model_paramSetStereoModelParamSetStereoModelParam can also be queried with get_stereo_model_paramget_stereo_model_paramget_stereo_model_paramGetStereoModelParamGetStereoModelParam - for a description see the former operator. In constrast, the following parameters are set by other operators and cannot be modified afterwards.

General parameters

'type'"type""type""type""type":

Type of the stereo model (currently either 'surface_pairwise'"surface_pairwise""surface_pairwise""surface_pairwise""surface_pairwise" or 'points_3d'"points_3d""points_3d""points_3d""points_3d").

'camera_setup_model'"camera_setup_model""camera_setup_model""camera_setup_model""camera_setup_model":

Handle to a copy of the camera setup model set in the stereo model. Changing properties of the copy does not affect the camera setup model stored in the stereo model. Once the copy is not needed anymore, you must release its memory with clear_camera_setup_modelclear_camera_setup_modelclear_camera_setup_modelClearCameraSetupModelClearCameraSetupModel.

These parameters are set when creating the stereo model with create_stereo_modelcreate_stereo_modelcreate_stereo_modelCreateStereoModelCreateStereoModel.

Surface reconstruction parameters

'min_disparity'"min_disparity""min_disparity""min_disparity""min_disparity",'max_disparity'"max_disparity""max_disparity""max_disparity""max_disparity":

Tuple of minimum or maximum disparity settings, respectively, for each image pair. This settings are computed internally from the bounding box specified for the stereo model (see set_stereo_model_paramset_stereo_model_paramset_stereo_model_paramSetStereoModelParamSetStereoModelParam) and are then used as the parameters MinDisparity and MaxDisparity, respectively, in the internal call to binocular_disparitybinocular_disparitybinocular_disparityBinocularDisparityBinocularDisparity for the corresonding image pair. The indices of the image pairs can be queried by get_stereo_model_image_pairsget_stereo_model_image_pairsget_stereo_model_image_pairsGetStereoModelImagePairsGetStereoModelImagePairs. Note that this information is only available if the 'persistence'"persistence""persistence""persistence""persistence" mode was switched on during surface reconstruction (see reconstruct_surface_stereoreconstruct_surface_stereoreconstruct_surface_stereoReconstructSurfaceStereoReconstructSurfaceStereo). Note furthermore that the returned values are tuple-valued and cannot be queried together with other parameters (more on this in the the paragraph "A note on tuple-valued model parameters" below).

A note on tuple-valued model parameters

Most of the stereo model parameters are single-valued. Thus, you can provide a list (i.e., tuple) of parameter names and get a list (tuple) of values that has the same length as the output tuple. In contrast, when querying a tuple-valued parameter, a tuple of values is returned. When querying such a parameter together with other parameters, the value-to-parameter-name correspondence is not obvious anymore. Thus, tuple-valued parameters like 'min_disparity'"min_disparity""min_disparity""min_disparity""min_disparity" or and 'max_disparity'"max_disparity""max_disparity""max_disparity""max_disparity" should always be queried in a separate call to get_stereo_model_paramget_stereo_model_paramget_stereo_model_paramGetStereoModelParamGetStereoModelParam.

Parallelization

Parameters

StereoModelIDStereoModelIDStereoModelIDStereoModelIDstereoModelID (input_control)  stereo_model HStereoModel, HTupleHStereoModel, HTupleHStereoModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Handle of the stereo model.

ParamNameParamNameParamNameParamNameparamName (input_control)  attribute.name(-array) HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Names of the parameters to be set.

List of values: 'type'"type""type""type""type", 'camera_setup_model'"camera_setup_model""camera_setup_model""camera_setup_model""camera_setup_model", 'bounding_box'"bounding_box""bounding_box""bounding_box""bounding_box", 'persistence'"persistence""persistence""persistence""persistence", 'sub_sampling_step'"sub_sampling_step""sub_sampling_step""sub_sampling_step""sub_sampling_step", 'rectif_interpolation'"rectif_interpolation""rectif_interpolation""rectif_interpolation""rectif_interpolation", 'rectif_sub_sampling'"rectif_sub_sampling""rectif_sub_sampling""rectif_sub_sampling""rectif_sub_sampling", 'disparity_method'"disparity_method""disparity_method""disparity_method""disparity_method", 'binocular_method'"binocular_method""binocular_method""binocular_method""binocular_method", 'binocular_num_levels'"binocular_num_levels""binocular_num_levels""binocular_num_levels""binocular_num_levels", 'binocular_mask_width'"binocular_mask_width""binocular_mask_width""binocular_mask_width""binocular_mask_width", 'binocular_mask_height'"binocular_mask_height""binocular_mask_height""binocular_mask_height""binocular_mask_height", 'binocular_texture_thresh'"binocular_texture_thresh""binocular_texture_thresh""binocular_texture_thresh""binocular_texture_thresh", 'binocular_score_thresh'"binocular_score_thresh""binocular_score_thresh""binocular_score_thresh""binocular_score_thresh", 'binocular_filter'"binocular_filter""binocular_filter""binocular_filter""binocular_filter", 'binocular_sub_disparity'"binocular_sub_disparity""binocular_sub_disparity""binocular_sub_disparity""binocular_sub_disparity", 'min_disparity'"min_disparity""min_disparity""min_disparity""min_disparity", 'max_disparity'"max_disparity""max_disparity""max_disparity""max_disparity", 'point_meshing'"point_meshing""point_meshing""point_meshing""point_meshing", 'poisson_depth'"poisson_depth""poisson_depth""poisson_depth""poisson_depth", 'poisson_solver_divide'"poisson_solver_divide""poisson_solver_divide""poisson_solver_divide""poisson_solver_divide", 'poisson_samples_per_node'"poisson_samples_per_node""poisson_samples_per_node""poisson_samples_per_node""poisson_samples_per_node"

ParamValueParamValueParamValueParamValueparamValue (output_control)  attribute.value-array HTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Values of the parameters to be set.

Module

3D Metrology


Table of Contents / 3D Reconstruction / Multi-View Stereo ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH