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

create_stereo_modelcreate_stereo_modelcreate_stereo_modelCreateStereoModelCreateStereoModel (Operator)

Name

create_stereo_modelcreate_stereo_modelcreate_stereo_modelCreateStereoModelCreateStereoModel — Create a HALCON stereo model.

Signature

create_stereo_model( : : CameraSetupModelID, Method, GenParamName, GenParamValue : StereoModelID)

Herror create_stereo_model(const Hlong CameraSetupModelID, const char* Method, const char* GenParamName, double GenParamValue, Hlong* StereoModelID)

Herror T_create_stereo_model(const Htuple CameraSetupModelID, const Htuple Method, const Htuple GenParamName, const Htuple GenParamValue, Htuple* StereoModelID)

Herror create_stereo_model(const HTuple& CameraSetupModelID, const HTuple& Method, const HTuple& GenParamName, const HTuple& GenParamValue, Hlong* StereoModelID)

HStereoModel HCameraSetupModel::CreateStereoModel(const HTuple& Method, const HTuple& GenParamName, const HTuple& GenParamValue) const

void HStereoModel::CreateStereoModel(const HCameraSetupModel& CameraSetupModelID, const HTuple& Method, const HTuple& GenParamName, const HTuple& GenParamValue)

void HOperatorSetX.CreateStereoModel(
[in] VARIANT CameraSetupModelID, [in] VARIANT Method, [in] VARIANT GenParamName, [in] VARIANT GenParamValue, [out] VARIANT* StereoModelID)

IHStereoModelX* HCameraSetupModelX.CreateStereoModel(
[in] BSTR Method, [in] BSTR GenParamName, [in] VARIANT GenParamValue)

void HStereoModelX.CreateStereoModel(
[in] IHCameraSetupModelX* CameraSetupModelID, [in] BSTR Method, [in] BSTR GenParamName, [in] VARIANT GenParamValue)

static void HOperatorSet.CreateStereoModel(HTuple cameraSetupModelID, HTuple method, HTuple genParamName, HTuple genParamValue, out HTuple stereoModelID)

HStereoModel HCameraSetupModel.CreateStereoModel(string method, string genParamName, HTuple genParamValue)

HStereoModel HCameraSetupModel.CreateStereoModel(string method, string genParamName, double genParamValue)

public HStereoModel(HCameraSetupModel cameraSetupModelID, string method, string genParamName, HTuple genParamValue)

public HStereoModel(HCameraSetupModel cameraSetupModelID, string method, string genParamName, double genParamValue)

void HStereoModel.CreateStereoModel(HCameraSetupModel cameraSetupModelID, string method, string genParamName, HTuple genParamValue)

void HStereoModel.CreateStereoModel(HCameraSetupModel cameraSetupModelID, string method, string genParamName, double genParamValue)

Description

The operator create_stereo_modelcreate_stereo_modelcreate_stereo_modelCreateStereoModelCreateStereoModel creates a HALCON stereo model and returns a handle to it in StereoModelIDStereoModelIDStereoModelIDStereoModelIDstereoModelID. The model provides functionality for reconstructing either 3D points or surfaces from a calibrated multi-view stereo camera setup specified in CameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDcameraSetupModelID (refer to calibrate_camerascalibrate_camerascalibrate_camerasCalibrateCamerasCalibrateCameras for further details on calibration of multiple cameras).

For MethodMethodMethodMethodmethod='points_3d'"points_3d""points_3d""points_3d""points_3d", a stereo model is created that, after being configured, can be passed to reconstruct_points_stereoreconstruct_points_stereoreconstruct_points_stereoReconstructPointsStereoReconstructPointsStereo. The latter reconstructs 3D points by intersecting lines of sight from point correspondences, extracted from multiple calibrated images (see reconstruct_points_stereoreconstruct_points_stereoreconstruct_points_stereoReconstructPointsStereoReconstructPointsStereo for more details).

For MethodMethodMethodMethodmethod='surface_pairwise'"surface_pairwise""surface_pairwise""surface_pairwise""surface_pairwise", a stereo model is created that, after being configured, can be passed to reconstruct_surface_stereoreconstruct_surface_stereoreconstruct_surface_stereoReconstructSurfaceStereoReconstructSurfaceStereo. The latter obtains disparity images from preselected image pairs in a calibrated multi-view stereo setup and fuses the collected 3D information in a single surface reconstruction (see reconstruct_surface_stereoreconstruct_surface_stereoreconstruct_surface_stereoReconstructSurfaceStereoReconstructSurfaceStereo for more details).

The parameters GenParamNameGenParamNameGenParamNameGenParamNamegenParamName and GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue can be used to set general model parameters. Alternatively, these parameters can be modified with the operator set_stereo_model_paramset_stereo_model_paramset_stereo_model_paramSetStereoModelParamSetStereoModelParam before the corresponding reconstruction operator is called (see set_stereo_model_paramset_stereo_model_paramset_stereo_model_paramSetStereoModelParamSetStereoModelParam for more details on the available model parameters).

When the model is no more needed, you should release its memory by clear_stereo_modelclear_stereo_modelclear_stereo_modelClearStereoModelClearStereoModel.

Parallelization

Parameters

CameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDcameraSetupModelID (input_control)  camera_setup_model HCameraSetupModel, HTupleHCameraSetupModel, HTupleHCameraSetupModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Handle to the camera setup model.

MethodMethodMethodMethodmethod (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Reconstruction method.

Default value: 'surface_pairwise' "surface_pairwise" "surface_pairwise" "surface_pairwise" "surface_pairwise"

List of values: 'surface_pairwise'"surface_pairwise""surface_pairwise""surface_pairwise""surface_pairwise", 'points_3d'"points_3d""points_3d""points_3d""points_3d"

GenParamNameGenParamNameGenParamNameGenParamNamegenParamName (input_control)  attribute.name HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Name of the model parameter to be set.

Default value: []

List of values: '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", '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"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue (input_control)  attribute.value HTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Value of the model parameter to be set.

Default value: []

Suggested values: 'ncc'"ncc""ncc""ncc""ncc"

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

Handle of the stereo model.

Possible Successors

set_stereo_model_paramset_stereo_model_paramset_stereo_model_paramSetStereoModelParamSetStereoModelParam, set_stereo_model_image_pairsset_stereo_model_image_pairsset_stereo_model_image_pairsSetStereoModelImagePairsSetStereoModelImagePairs, reconstruct_surface_stereoreconstruct_surface_stereoreconstruct_surface_stereoReconstructSurfaceStereoReconstructSurfaceStereo, reconstruct_points_stereoreconstruct_points_stereoreconstruct_points_stereoReconstructPointsStereoReconstructPointsStereo

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