isInBoundary

Determine if a series of points are element of a boundary defined surface
1.1K Downloads
Updated 9 Mar 2006

No License

This function was intended to use with images from histological sections where different structures are annotated on the image. The cells are points and the annotations boundaries. This function then determines if a given series of points are element of a boundary. See picture: A) Image with drawn boundary, B) following the return values the cells which are element of the boundary are drawn with a white asterisk.

Example:
p = [[x1 y1];[x2 y2]];
boundary = [[x3 y3]; ... ;[xn yn]];
r = isInBoundary(p,boundary);
>> r=
0 1

Cite As

Gie Spaepen (2024). isInBoundary (https://www.mathworks.com/matlabcentral/fileexchange/10287-isinboundary), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
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.0.0.0