@@ -305,5 +305,44 @@ def closing_labels(labels:"napari.types.LabelsData", radius: int = 1) -> "napari
305305 return cle .closing_labels (labels , radius = radius )
306306
307307
308+ @register_function (menu = "Transforms > Rotate (clesperanto)" )
309+ @time_slicer
310+ @_package_ncle
311+ def rotate (image :"napari.types.ImageData" , angle_around_x_in_degrees : float = 0 , angle_around_y_in_degrees : float = 0 , angle_around_z_in_degrees : float = 0 , rotate_around_center :bool = True , linear_interpolation :bool = False , auto_size :bool = False ) -> "napari.types.ImageData" :
312+ return cle .rotate (image , angle_around_x_in_degrees = angle_around_x_in_degrees , angle_around_y_in_degrees = angle_around_y_in_degrees , angle_around_z_in_degrees = angle_around_z_in_degrees , rotate_around_center = rotate_around_center , linear_interpolation = linear_interpolation , auto_size = auto_size )
313+
314+
315+ @register_function (menu = "Transforms > Scale (clesperanto)" )
316+ @time_slicer
317+ @_package_ncle
318+ def scale (image :"napari.types.ImageData" , factor_x : float = 0 , factor_y : float = 0 , factor_z : float = 0 , centered :bool = False , linear_interpolation :bool = True , auto_size :bool = False ) -> "napari.types.ImageData" :
319+ return cle .scale (image , factor_x = factor_x , factor_y = factor_y , factor_z = factor_z , centered = centered , linear_interpolation = linear_interpolation , auto_size = auto_size )
320+
321+
322+ @register_function (menu = "Transforms > Translate (clesperanto)" )
323+ @time_slicer
324+ @_package_ncle
325+ def translate (image :"napari.types.ImageData" , translate_x : float = 0 , translate_y : float = 0 , translate_z : float = 0 , linear_interpolation :bool = True ) -> "napari.types.ImageData" :
326+ return cle .translate (image , translate_x = translate_x , translate_y = translate_y , translate_z = translate_z , linear_interpolation = linear_interpolation )
327+
308328
329+ @register_function (menu = "Transforms > Rigid transform (clesperanto)" )
330+ @time_slicer
331+ @_package_ncle
332+ def rigid_transform (image :"napari.types.ImageData" , translate_x : float = 0 , translate_y : float = 0 , translate_z : float = 0 , angle_around_x_in_degrees : float = 0 , angle_around_y_in_degrees : float = 0 , angle_around_z_in_degrees : float = 0 , rotate_around_center :bool = True , linear_interpolation :bool = False , auto_size :bool = False ) -> "napari.types.ImageData" :
333+ return cle .rigid_transform (image , translate_x = translate_x , translate_y = translate_y , translate_z = translate_z , angle_around_x_in_degrees = angle_around_x_in_degrees , angle_around_y_in_degrees = angle_around_y_in_degrees , angle_around_z_in_degrees = angle_around_z_in_degrees , rotate_around_center = rotate_around_center , linear_interpolation = linear_interpolation , auto_size = auto_size )
334+
335+
336+ @register_function (menu = "Transforms > Sub-stack (clesperanto)" )
337+ @time_slicer
338+ @_package_ncle
339+ def sub_stack (image :"napari.types.ImageData" , start_z :int = 0 , end_z :int = 1 ) -> "napari.types.ImageData" :
340+ return cle .sub_stack (image , start_z = start_z , end_z = end_z )
341+
342+
343+ @register_function (menu = "Transforms > Reduce stack (clesperanto)" )
344+ @time_slicer
345+ @_package_ncle
346+ def reduce_stack (image :"napari.types.ImageData" , reduction_factor :int = 2 , offset :int = 0 ) -> "napari.types.ImageData" :
347+ return cle .reduce_stack (image , reduction_factor = reduction_factor , offset = offset )
309348
0 commit comments