Sampling Of 2D Geometrical Object via Line Beams
Version 1.0.0.1 (307 KB) by
Michael Chan
Illustrates coordinated sampling of a geometrical shape such as an eclipse is used in this case.
main executing reference usage: usage_SamplingOf2D_GeometricalObject_viaLineBeams.m
---------------------------------------------------------------------------------
For illustrative purposes the gridded plot is sampled by detection of line beam intersections of the edge and in-bound regions of the eclipse.
The coordinates are traced and pixelized into an image map.
* Caveat:
- For random ray beams, as many lines are required for the projections, the longer the process may take depending on your processors.
- Though fan ray beams and parallel ray beams are provided, they are not incorporated yet.
- 10 lines are projected for demo purposes. Number of lines may be set at:
ssrayLinesScheme_parallel.m
ssrayLinesScheme_fan.m
ssrayLinesScheme_random.m
- Help section yet to be included.
---------------------------------------------------------------------------------
=================================================================================
* Caveat:
For auto results sending at : sendResults.m
The sender's email has to be a gmail account to send the results via email.
For automated results emailing, please provide the following parameters in the stated files:
senderMail = '_____@gmail.com';
password = '_______';
recipientEmails = '____@_____';
=================================================================================
* Caveat: For reference only.
If the reference demo has a more elegant presentation, please do not hesitate to suggest and send feedback to author.
Thank you.
Regards,
Michael Chan JT
Cite As
Michael Chan (2025). Sampling Of 2D Geometrical Object via Line Beams (https://au.mathworks.com/matlabcentral/fileexchange/29674-sampling-of-2d-geometrical-object-via-line-beams), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Find more on Image Arithmetic in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Get points for a line between 2 points, Coordinate Rotation
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.