MATLAB: How to return the height of a bounding box

digital image processingimage analysisImage Processing Toolbox

How can I return the height of a bounding box of an object to the work space from an object detection algorithm like Gaussian Mixture Model in matlab

Best Answer

Use regionprops, with the 'BoundingBox' option. The height is the the "width" of the first dimension (rows).
doc regionprops