HALCON Reference Manual 10.0.2
Name
obj_to_integerobj_to_integerobj_to_integerObjToIntegerObjToInteger — Convert an iconic object into an “integer number.”
void HOperatorSetX.ObjToInteger(
[in] IHUntypedObjectX* Objects, [in] VARIANT Index, [in] VARIANT Number, [out] VARIANT* SurrogateTuple)
VARIANT HImageX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HRegionX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HUntypedObjectX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HXLDContX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HXLDPolyX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HXLDParaX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HXLDModParaX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
VARIANT HXLDExtParaX.ObjToInteger(
[in] Hlong Index, [in] Hlong Number)
static void HOperatorSet.ObjToInteger(HObject objects, HTuple index, HTuple number, out HTuple surrogateTuple)
HTuple HObject.ObjToInteger(int index, int number)
HTuple HImage.ObjToInteger(int index, int number)
HTuple HRegion.ObjToInteger(int index, int number)
HTuple HXLD.ObjToInteger(int index, int number)
HTuple HXLDCont.ObjToInteger(int index, int number)
HTuple HXLDPoly.ObjToInteger(int index, int number)
HTuple HXLDPara.ObjToInteger(int index, int number)
HTuple HXLDModPara.ObjToInteger(int index, int number)
HTuple HXLDExtPara.ObjToInteger(int index, int number)
obj_to_integerobj_to_integerobj_to_integerObjToIntegerObjToInteger stores NumberNumberNumberNumbernumber, starting at index
IndexIndexIndexIndexindex, of the database keys of the input object
ObjectsObjectsObjectsObjectsobjects as integer numbers in the output parameter
SurrogateTupleSurrogateTupleSurrogateTupleSurrogateTuplesurrogateTuple. If -1 is passed for NumberNumberNumberNumbernumber all
objects beginning with IndexIndexIndexIndexindex are copied. This facilitates
a direct access to an arbitrary element of ObjectsObjectsObjectsObjectsobjects. In
conjunction with count_objcount_objcount_objCountObjCountObj (returns the number of objects in
ObjectsObjectsObjectsObjectsobjects) the elements of ObjectsObjectsObjectsObjectsobjects can be processed
successively. The objects are not duplicated by
obj_to_integerobj_to_integerobj_to_integerObjToIntegerObjToInteger and thus must not be cleared by
clear_objclear_objclear_objClearObjClearObj.
The objects' data is not duplicated.
- Supports objects on compute devices.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Objects for which the surrogates are to be returned.
Starting index of the surrogates to be returned.
Default value: 1
Typical range of values: 1
≤
Index
Index
Index
Index
index
Number of surrogates to be returned.
Default value: -1
Restriction: (Number == -1) || ((Number + Index) <= number(Objects))
Tuple containing the surrogates.
* Access the i-th element:
obj_to_integer(Objects,i,1,Surrogat)
/* Access the i-th element: */
long i,Surrogate;
obj_to_integer(Objects,i,1,&Surrogat);
* Access the i-th element:
obj_to_integer(Objects,i,1,Surrogat)
* Access the i-th element:
obj_to_integer(Objects,i,1,Surrogat)
* Access the i-th element:
obj_to_integer(Objects,i,1,Surrogat)
Runtime complexity: O(|ObjectsObjectsObjectsObjectsobjects| + NumberNumberNumberNumbernumber)
obj_to_integerobj_to_integerobj_to_integerObjToIntegerObjToInteger returns 2 (H_MSG_TRUE) if all parameters are
correct. If the input is empty the behavior can be set via
set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>).
If necessary, an exception is raised.
copy_objcopy_objcopy_objCopyObjCopyObj,
select_objselect_objselect_objSelectObjSelectObj,
copy_imagecopy_imagecopy_imageCopyImageCopyImage,
gen_image_protogen_image_protogen_image_protoGenImageProtoGenImageProto
integer_to_objinteger_to_objinteger_to_objIntegerToObjIntegerToObj,
count_objcount_objcount_objCountObjCountObj
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |