function [MaskOut] = Iris_KeepbiggestObct3D(MaskIn)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

    Objects = regionprops('table', bwlabeln(MaskIn), {'Area', 'PixelIdxList'});
    Objects = sortrows(Objects, 'Area');
    ObjectsBiggest = Objects(end, :);
    MaskOut = f_Create_Mask_from_ObjectList_Pixel_IDX(ObjectsBiggest, 'PixelIdxList', MaskIn);
    %vol(MaskOut)
    
end

