MATLAB: How to find the height and width of an alphabet/letter Image Processing Toolboximage segmentation i have a letter in which I want to find the height and width of this letter any algorithm or code can suggest by anyone Best Answer TrybinaryImage = grayImage < 128;props = regionprops(binaryImage, 'BoundingBox');width = props.BoundingBox(3);height = props.BoundingBox(4); Related SolutionsMATLAB: How to measure the horizontal and vertical axis length of an object props = regionprops(binaryImage, 'BoundingBox');horizontalWidth = props.BoundingBox(3);verticalHeight = props.BoundingBox(4); MATLAB: Calculate the distance L, distance H and circumference (boundary) Try this:binaryImage = bwareafilt(binaryImage, 1); % Extract largest blob only.props = regionprops(binaryImage, 'BoundingBox', 'Perimeter');width = props.BoundingBox(3); % Horizontal distance.height = props.BoundingBox(4); % Vertical distance.perimeter = props.Perimeter; Related QuestionHelp with block letterMatlab Spelling letter by letter codeTrying to make a function who says the position for a letter in the alphabetHow to centralize alphabets in an imageInput alphabet and numbersGuide: alphabet and symbols
Best Answer