Resize_binary_edge_image(I,Sy,Sx)
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
- MATLAB > Graphics > Images > Read, Write, and Modify Image >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.