Mar-25-2020, 09:29 AM
I am converting a section of Matlab code from others as my project and I have no idea what it is doing.
CC_horiz=bwconncomp(horiz_erode,8);
CC_vert=bwconncomp(vert_erode,8);
stats_horiz=regionprops(CC_horiz,'Area','PixelIdxList');
stats_vert=regionprops(CC_vert,'Area','PixelIdxList');
Documentation of the two functions:
bwconncomp
regionprops
The outputs are all structural arrays and I wantregionprops to separate the Area and PixelIdxList field into two different variables. I have no idea what the functions are doing. It would be great to have some help.
Thanks in advance!
CC_horiz=bwconncomp(horiz_erode,8);
CC_vert=bwconncomp(vert_erode,8);
stats_horiz=regionprops(CC_horiz,'Area','PixelIdxList');
stats_vert=regionprops(CC_vert,'Area','PixelIdxList');
Documentation of the two functions:
bwconncomp
regionprops
The outputs are all structural arrays and I wantregionprops to separate the Area and PixelIdxList field into two different variables. I have no idea what the functions are doing. It would be great to have some help.
Thanks in advance!