Search code examples
regionstretchhalcon

Halcon - Stretch a region


How can a region be stretched?

If I have a region, of any shape, and want to stretch it horizontally, but not vertically, how can this be done?


Solution

  • Using the operator zoom_region(Region : RegionZoom : ScaleWidth, ScaleHeight : ). In your case ScaleHeight=1