MATLAB: How to calculate angles from boundary points can any one help me

computer visionComputer Vision Toolboximage processingmathematicsMATLABmatrix manipulation

calculate angles from boundary points

Best Answer

Use bwboundaries() to get the boundary. Then run along a boundary using atan2() or atan2d(). The angles between adjacent pixels will all be a multiple of 45 degrees of course: 0 45 90 135 180 225 270 315.