Detailed halcon function