Halcon 算子 complement

My column Halcon operator will continue to be updated, focusing on the translation and explanation of all Halcon operators, the entire column corresponds to Halcon example analysis, and Opencv operator translation and example analysis will be launched later

  Function: return the complement of a region;

Parameter translation (parameter order corresponds to the above order):

Input area,

Output area (RegionComplement == Region)

 

Concept supplement:

 

description:

Use the operator Complement to calculate the complement of the input region. If the system flag of'clip_region' is'false' (see my blog column Halcon operator set_system for details ), the result area will be infinite; therefore, in order to avoid this Circumstances, this flag must be set to True; In the subsequent calculations, De Morgan's law is applied when calculating the result.

When using the Complement operator and setting'clip_region' to false, it is just to avoid edge effects, for example, the region of interest is larger or smaller than the image. For the case that is smaller than the image, it is essentially cut.

Guess you like

Origin blog.csdn.net/weixin_39829336/article/details/112554268