@@ -45,6 +45,10 @@ def apply(self, image: np.ndarray, **kwargs) -> np.ndarray:
45
45
"""
46
46
return minmax_normalize (image , self .amin , self .amax )
47
47
48
+ def get_transform_init_args_names (self ):
49
+ """Get the names of the transformation arguments."""
50
+ return ("amin" , "amax" )
51
+
48
52
49
53
class PercentileNormalization (ImageOnlyTransform ):
50
54
def __init__ (
@@ -83,6 +87,10 @@ def apply(self, image: np.ndarray, **kwargs) -> np.ndarray:
83
87
"""
84
88
return percentile_normalize (image , self .lower , self .upper )
85
89
90
+ def get_transform_init_args_names (self ):
91
+ """Get the names of the transformation arguments."""
92
+ return ("lower" , "upper" )
93
+
86
94
87
95
class ImgNormalization (ImageOnlyTransform ):
88
96
def __init__ (
@@ -127,6 +135,10 @@ def apply(self, image: np.ndarray, **kwargs) -> np.ndarray:
127
135
"""
128
136
return normalize (image , self .standardize , self .amin , self .amax )
129
137
138
+ def get_transform_init_args_names (self ):
139
+ """Get the names of the transformation arguments."""
140
+ return ("amin" , "amax" , "standardize" )
141
+
130
142
131
143
def imgnorm_transform (** kwargs ) -> List [ImageOnlyTransform ]:
132
144
"""Return image-level normalization transform."""
0 commit comments