Lots of ways. For example call bwconvhull() and then regionprops to get bounding box.
binaryImage = bwconvhull(binaryImage, 'union');
props = regionprops(binaryImage, 'BoundingBox');
leftColumn = props.BoundingBox(1);
topRow = props.BoundingBox(2);
Or simply use find()
[rows, columns] = find(binaryImage);
leftColumn = min(columns);
topRow = min(rows);
Best Answer