You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bigframes/operations/blob.py
+56
Original file line number
Diff line number
Diff line change
@@ -384,6 +384,62 @@ def image_resize(
384
384
385
385
returndst
386
386
387
+
defimage_normalize(
388
+
self,
389
+
*,
390
+
alpha: float=1.0,
391
+
beta: float=0.0,
392
+
norm_type: str="l2",
393
+
dst: Union[str, bigframes.series.Series],
394
+
connection: Optional[str] =None,
395
+
) ->bigframes.series.Series:
396
+
"""Normalize images.
397
+
398
+
.. note::
399
+
BigFrames Blob is still under experiments. It may not work and subject to change in the future.
400
+
401
+
Args:
402
+
alpha (float, default 1.0): Norm value to normalize to or the lower range boundary in case of the range normalization.
403
+
beta (float, default 0.0): Upper range boundary in case of the range normalization; it is not used for the norm normalization.
404
+
norm_type (str, default "l2"): Normalization type. Accepted values are "inf", "l1", "l2" and "minmax".
405
+
dst (str or bigframes.series.Series): Destination GCS folder str or blob series.
406
+
connection (str or None, default None): BQ connection used for function internet transactions, and the output blob if "dst" is str. If None, uses default connection of the session.
0 commit comments