One of the most common HALCON operators is the following:
read_image(&Image,"File_xyz"); threshold(Image,&Thres,0.0,120.0); connection(Thres,&Conn); select_shape(Conn,&Result,"area","and",10.0,100000.0);
Step-by-step explanation of the code: