For all classifier needs feature from classification object .Here the program for height and width feature taken from hand image.This program suitable for any single object in the image.
%gray_img : input hand image or any measure image like 2d with 0 to 255
%height : pixel count of height
%width : pixel count of width
%out_img : segmented image with line for height and width
% hand_height_width function implements hand height and width of the image
% using the method outlined in:
% calculate the hand height and width value for gray image. In Proceedings of the Information Sciences 275 (2014) 45–56.
% Hand shape identification on multirange images.
% [ height width out_img ] = hand_height_width ( gray_img ) function is to find the hand height and width value of the image.
% The input is given to the gray scale image.
Anand g (2021). Object Height and Width Measure (https://www.mathworks.com/matlabcentral/fileexchange/48244-object-height-and-width-measure), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!