Resize_binary_edge_​image(I,Sy,Sx)

Resize binary edge image while maintaining curves connectivity and line thickness of one pixel
264 Downloads
Updated 29 Mar 2015

View License

Resize binary/logical image that consists of lines and curves of thickness of one pixels (i.e edge images, graphs, contours..) to new size binary image while maintaining line connectivity and line thickness of one pixel.


Input
I: Binary edge image (logical type) consist of lines and curves with a thickness of one pixel (such as curves, contour line, template, or edge images)
Sy,Sx: The size of the resized image
OR
Sy (no Sx) the scale ratio of the resized image to the original image
Output
mat: Resized version of the input image I, also binary edge image, the connectivity/topology of the edges/curves in I is maintained and also the line thickness remains one pixel

Note:
In addition to enlarging/shrinking of images can also be used to stretch edge images by using different proportions (Sx,Sy) of output image dimension to input image dimension.

Cite As

sagi eppel (2024). Resize_binary_edge_image(I,Sy,Sx) (https://www.mathworks.com/matlabcentral/fileexchange/49135-resize_binary_edge_image-i-sy-sx), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

code changed

1.1.0.0

code changed

1.0.0.0