#define H_ERR_ICUNDEF 2108 /* Undefined gray value component */ /* Error codes concerning the HALCON core (+ Language interfaces), 2200..2299 */ #define H_ERR_IDBD 2200 /* Inconsistent data of data base (typing) */ #define H_ERR_WICPI 2201 /* Wrong index for input control pa...
IfModewas set to 'image', undefined gray values may be displayed. Depending on the context they are black or can have random content. See the examples. Execution Information Multithreading type: reentrant (runs in parallel with non-exclusive operators). ...
Second, if Interpolation is set to a value other than 'nearest_neighbor', a large scale factor is applied, and a large output image is obtained, then undefined gray values at the lower and at the right image border may result. The maximum width of this border of undefined gray values ...
Attention The gray values of the output objects are undefined. 创建任何方向的矩形。操作员gen_rectangle2生成一个或多个中心(行,列),方向和半披边长度长度 1和Length2 矩形。给出的方向,并指出在弧形测量水平轴之间的长度 1 (数学正)的角度。系统运行的坐标从(0,0)(左上角)至(宽度-1,身高-1 )。
The gray values of the output objects are undefined. For speed reasons, the resulting region may contain additional pixels at the border and some individual pixels at the border may be missing. This may lead to an inconsistency between the operatorssmallest_rectangle2andgen_rectangle2. ...
Errors caused by undefined pixels can easily be prevented by, e.g., choosing a dilated domain (see Morphology / Gray Values) according to the filter mask. If multiple filters are applied consecutively, the image domain can be dilated in advance, considering the filter sizes to be used. For...
Halcon的ZoomRegion Halcon的ZoomRegion 后,中心会变化,所以需要移回来
代码如下,执行最后的inspect-shape-model时提示undefined gray values。 ??? read_image (Image, 'C:/Users/hp/Desktop/halcon/图片.png') threshold (Image, Regions, 0, 96) connection (Regions, ConnectedRegions) select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 1, 5010.63) gen_rectan...
int* CCTest::Get() { return (int*)m_pRegion->Id(); }CCTest::~CCTest() { delete m_pRegion; } C#代码: public class CTest { public CTest(System.IntPtr ptr) { m_region = new HObject(ptr); HTuple tArea, tRow, tCol;
The maximum width of this border of undefined gray values can be estimated as , where S is the scale factor in one dimension and I is the size of the output image in the corresponding dimension. For real images, the parameter 'int_zooming' does not affect the accuracy, since the ...