MATLAB: How to get all the orientation of the lines in a 2-D image image analysisImage Processing Toolbox How do I get the orientations of all the lines (short and long) in this 2-dimensional image? Thanks! Best Answer Use regionprops(). Something likebinaryImage = grayImage < 220;props = regionprops(binaryImage, 'Orientation');allAngles = [props.Orientation];Let us know if you need a full demo, and if so, attach your full size image. Related SolutionsMATLAB: Find area from binary image. Try this:binaryImage = bwconvhull(binaryImage, 'union');area = bwarea(binaryImage);% or for a simple sum of pixels:area = sum(binaryImage(:)); MATLAB: How to calculate area of an irregular shape region in a binary image Try this:props = regionprops(binaryImage, 'Area');allAreas = [props.Area] Related QuestionHow to find slope of many line on this picture with noiseCretae a video from Images using WriterObjHow to color an image according to orientation of objectsHow to measure the horizontal and vertical axis length of an object
Best Answer