Thresholding largest/smallest component in ITK

I want to relabel components with regard to physical size rather than the number of voxels. So a hypothetical SetMinimumObjectPhysicalSize rather than SetMinimumObjectSize. What would be the most efficient way to do that?

Thank you!

Edit: link to the new topic Relabeling components with regard to minimum physical object size