ENH: Simplify calculation of 2D max diameter
ENH: Simplify calculation of 2D max diameter

Max diameter calculation in single private function, which takes the plane (x, y or z) as a parameter (`dim`). Public feature calculation functions call this function with the correct plane (z = 0, y = 1, x = 2).

Radiomics/pyradiomics,Radiomics/pyradiomics,Radiomics/pyradiomics,Radiomics/pyradiomics