99from __future__ import annotations
1010
1111import numpy as np
12- import sigima .computation .base as sigima_base
13- import sigima .computation .image as sigima_image
1412import sigima .params
13+ import sigima .proc .base as sigima_base
14+ import sigima .proc .image as sigima_image
1515from guidata .qthelpers import exec_dialog
1616from plotpy .widgets .resizedialog import ResizeDialog
1717from qtpy import QtWidgets as QW
@@ -480,7 +480,7 @@ def register_computations(self) -> None:
480480
481481 @qt_try_except ()
482482 def compute_resize (self , param : sigima .params .ResizeParam | None = None ) -> None :
483- """Resize image with :py:func:`sigima.computation .image.resize`"""
483+ """Resize image with :py:func:`sigima.proc .image.resize`"""
484484 obj0 = self .panel .objview .get_sel_objects (include_groups = True )[0 ]
485485 for obj in self .panel .objview .get_sel_objects ():
486486 if obj .data .shape != obj0 .data .shape :
@@ -507,7 +507,7 @@ def compute_resize(self, param: sigima.params.ResizeParam | None = None) -> None
507507
508508 @qt_try_except ()
509509 def compute_binning (self , param : sigima .params .BinningParam | None = None ) -> None :
510- """Binning image with :py:func:`sigima.computation .image.binning`"""
510+ """Binning image with :py:func:`sigima.proc .image.binning`"""
511511 edit = param is None
512512 obj0 = self .panel .objview .get_sel_objects (include_groups = True )[0 ]
513513 input_dtype_str = str (obj0 .data .dtype )
@@ -524,7 +524,7 @@ def compute_line_profile(
524524 self , param : sigima .params .LineProfileParam | None = None
525525 ) -> None :
526526 """Compute profile along a vertical or horizontal line
527- with :py:func:`sigima.computation .image.line_profile`"""
527+ with :py:func:`sigima.proc .image.line_profile`"""
528528 title = _ ("Profile" )
529529 add_initial_shape = self .has_param_defaults (sigima .params .LineProfileParam )
530530 edit , param = self .init_param (param , sigima_image .LineProfileParam , title )
@@ -544,7 +544,7 @@ def compute_segment_profile(
544544 self , param : sigima .params .SegmentProfileParam | None = None
545545 ):
546546 """Compute profile along a segment
547- with :py:func:`sigima.computation .image.segment_profile`"""
547+ with :py:func:`sigima.proc .image.segment_profile`"""
548548 title = _ ("Profile" )
549549 add_initial_shape = self .has_param_defaults (sigima .params .SegmentProfileParam )
550550 edit , param = self .init_param (param , sigima_image .SegmentProfileParam , title )
@@ -564,7 +564,7 @@ def compute_average_profile(
564564 self , param : sigima .params .AverageProfileParam | None = None
565565 ) -> None :
566566 """Compute average profile
567- with :py:func:`sigima.computation .image.average_profile`"""
567+ with :py:func:`sigima.proc .image.average_profile`"""
568568 title = _ ("Average profile" )
569569 add_initial_shape = self .has_param_defaults (sigima .params .AverageProfileParam )
570570 edit , param = self .init_param (param , sigima_image .AverageProfileParam , title )
@@ -584,7 +584,7 @@ def compute_radial_profile(
584584 self , param : sigima .params .RadialProfileParam | None = None
585585 ) -> None :
586586 """Compute radial profile
587- with :py:func:`sigima.computation .image.radial_profile`"""
587+ with :py:func:`sigima.proc .image.radial_profile`"""
588588 title = _ ("Radial profile" )
589589 edit , param = self .init_param (param , sigima_image .RadialProfileParam , title )
590590 if edit :
@@ -669,7 +669,7 @@ def translate_coords(obj, orig, coords):
669669 @qt_try_except ()
670670 def compute_offset_correction (self , param : ROI2DParam | None = None ) -> None :
671671 """Compute offset correction
672- with :py:func:`sigima.computation .image.offset_correction`"""
672+ with :py:func:`sigima.proc .image.offset_correction`"""
673673 obj = self .panel .objview .get_sel_objects (include_groups = True )[0 ]
674674 if param is None :
675675 dlg = imagebackground .ImageBackgroundDialog (obj , parent = self .panel .parent ())
@@ -686,13 +686,13 @@ def compute_all_threshold(self) -> None:
686686 """Compute all threshold algorithms
687687 using the following functions:
688688
689- - :py:func:`sigima.computation .image.threshold.threshold_isodata`
690- - :py:func:`sigima.computation .image.threshold.threshold_li`
691- - :py:func:`sigima.computation .image.threshold.threshold_mean`
692- - :py:func:`sigima.computation .image.threshold.threshold_minimum`
693- - :py:func:`sigima.computation .image.threshold.threshold_otsu`
694- - :py:func:`sigima.computation .image.threshold.threshold_triangle`
695- - :py:func:`sigima.computation .image.threshold.threshold_yen`
689+ - :py:func:`sigima.proc .image.threshold.threshold_isodata`
690+ - :py:func:`sigima.proc .image.threshold.threshold_li`
691+ - :py:func:`sigima.proc .image.threshold.threshold_mean`
692+ - :py:func:`sigima.proc .image.threshold.threshold_minimum`
693+ - :py:func:`sigima.proc .image.threshold.threshold_otsu`
694+ - :py:func:`sigima.proc .image.threshold.threshold_triangle`
695+ - :py:func:`sigima.proc .image.threshold.threshold_yen`
696696 """
697697 self .compute_multiple_1_to_1 (
698698 [
@@ -714,10 +714,10 @@ def compute_all_denoise(self, params: list | None = None) -> None:
714714 """Compute all denoising filters
715715 using the following functions:
716716
717- - :py:func:`sigima.computation .image.restoration.denoise_tv`
718- - :py:func:`sigima.computation .image.restoration.denoise_bilateral`
719- - :py:func:`sigima.computation .image.restoration.denoise_wavelet`
720- - :py:func:`sigima.computation .image.restoration.denoise_tophat`
717+ - :py:func:`sigima.proc .image.restoration.denoise_tv`
718+ - :py:func:`sigima.proc .image.restoration.denoise_bilateral`
719+ - :py:func:`sigima.proc .image.restoration.denoise_wavelet`
720+ - :py:func:`sigima.proc .image.restoration.denoise_tophat`
721721 """
722722 if params is not None :
723723 assert len (params ) == 4 , "Wrong number of parameters (4 expected)"
@@ -748,12 +748,12 @@ def compute_all_morphology(
748748 """Compute all morphology filters
749749 using the following functions:
750750
751- - :py:func:`sigima.computation .image.morphology.white_tophat`
752- - :py:func:`sigima.computation .image.morphology.black_tophat`
753- - :py:func:`sigima.computation .image.morphology.erosion`
754- - :py:func:`sigima.computation .image.morphology.dilation`
755- - :py:func:`sigima.computation .image.morphology.opening`
756- - :py:func:`sigima.computation .image.morphology.closing`
751+ - :py:func:`sigima.proc .image.morphology.white_tophat`
752+ - :py:func:`sigima.proc .image.morphology.black_tophat`
753+ - :py:func:`sigima.proc .image.morphology.erosion`
754+ - :py:func:`sigima.proc .image.morphology.dilation`
755+ - :py:func:`sigima.proc .image.morphology.opening`
756+ - :py:func:`sigima.proc .image.morphology.closing`
757757 """
758758 if param is None :
759759 param = sigima_image .MorphologyParam ()
@@ -774,20 +774,20 @@ def compute_all_edges(self) -> None:
774774 """Compute all edges filters
775775 using the following functions:
776776
777- - :py:func:`sigima.computation .image.edges.roberts`
778- - :py:func:`sigima.computation .image.edges.prewitt`
779- - :py:func:`sigima.computation .image.edges.prewitt_h`
780- - :py:func:`sigima.computation .image.edges.prewitt_v`
781- - :py:func:`sigima.computation .image.edges.sobel`
782- - :py:func:`sigima.computation .image.edges.sobel_h`
783- - :py:func:`sigima.computation .image.edges.sobel_v`
784- - :py:func:`sigima.computation .image.edges.scharr`
785- - :py:func:`sigima.computation .image.edges.scharr_h`
786- - :py:func:`sigima.computation .image.edges.scharr_v`
787- - :py:func:`sigima.computation .image.edges.farid`
788- - :py:func:`sigima.computation .image.edges.farid_h`
789- - :py:func:`sigima.computation .image.edges.farid_v`
790- - :py:func:`sigima.computation .image.edges.laplace`
777+ - :py:func:`sigima.proc .image.edges.roberts`
778+ - :py:func:`sigima.proc .image.edges.prewitt`
779+ - :py:func:`sigima.proc .image.edges.prewitt_h`
780+ - :py:func:`sigima.proc .image.edges.prewitt_v`
781+ - :py:func:`sigima.proc .image.edges.sobel`
782+ - :py:func:`sigima.proc .image.edges.sobel_h`
783+ - :py:func:`sigima.proc .image.edges.sobel_v`
784+ - :py:func:`sigima.proc .image.edges.scharr`
785+ - :py:func:`sigima.proc .image.edges.scharr_h`
786+ - :py:func:`sigima.proc .image.edges.scharr_v`
787+ - :py:func:`sigima.proc .image.edges.farid`
788+ - :py:func:`sigima.proc .image.edges.farid_h`
789+ - :py:func:`sigima.proc .image.edges.farid_v`
790+ - :py:func:`sigima.proc .image.edges.laplace`
791791 """
792792 funcs = [
793793 sigima_image .roberts ,
@@ -824,7 +824,7 @@ def compute_peak_detection(
824824 self , param : sigima .params .Peak2DDetectionParam | None = None
825825 ) -> dict [str , ResultShape ]:
826826 """Compute 2D peak detection
827- with :py:func:`sigima.computation .image.peak_detection`"""
827+ with :py:func:`sigima.proc .image.peak_detection`"""
828828 edit , param = self .init_param (
829829 param , sigima_image .Peak2DDetectionParam , _ ("Peak detection" )
830830 )
0 commit comments