I have a image with a random shape. What I need to do is to get the outermost 5 pixels of the image as a region. How can this be done in halcon?
what I did so far is this:
threshold (ImageL, FullRegion, 0,255)
erosion_circle(FullRegion, FullRegionErosion,5)
complement(FullRegionErosion, Region2)
intersection(FullRegion, Region2, Border)
It works, but I dont like it.. it seems like a hack to me..