erlab.interactive.imagetool.dialogs¶
Dialogs for data manipulation found in the menu bar.
Classes
|
|
|
|
|
|
alias of |
|
|
|
|
Coordinate editor with direct values and affine scale/offset modes. |
|
Edit coordinate values using start/end-or-delta controls and a table. |
|
|
|
|
|
Parent class for implementing data changes that only affects the appearance. |
|
Parent class for implementing data changes that affect both shape and values. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- class erlab.interactive.imagetool.dialogs.DataTransformDialog(slicer_area)[source]¶
Bases:
_DataManipulationDialogParent class for implementing data changes that affect both shape and values.
These changes are destructive and cannot be undone. The user can choose to open the transformed data in a new window or replace the current data.
Override method
setup_widgetsto add widgets to the dialog.Override method
process_datato implement the data transformation.Override
source_transform_operationorsource_operationsto generate operation-backed copy code, or overridemake_codeonly for non-operation code.Override attribute
titleto set the title of the dialog window.Override attribute
enable_copyto show or hide the copy button.Override attributes
prefixandsuffixto set the prefix and suffix of the new data name.Override attribute
keep_colorsandkeep_color_limitsto control which color-related settings are migrated when opening in a new window.
-
keep_colors:
bool= True¶ Whether to keep the color settings when opening in a new window.
If True, the same colormap and normalization is used in the new window.
-
keep_color_limits:
bool= True¶ Whether to also keep manual color limits when opening in a new window.
- class erlab.interactive.imagetool.dialogs.DataFilterDialog(slicer_area)[source]¶
Bases:
_DataManipulationDialogParent class for implementing data changes that only affects the appearance.
These changes are not destructive and can be undone from the menu bar. Only one kind of filter can be applied at a time, and applying a new kind of filter will replace the previous one.
Override method
setup_widgetsto add widgets to the dialog.Override method
process_datato implement the filter. The output must be a new DataArray with the same shape as the input.Override
filter_operationto generate operation-backed copy code and provenance for the displayed filtered data.Override attribute
titleto set the title of the dialog window.Override attribute
enable_copyto show or hide the copy button.Override attributes
enable_previewto show or hide the preview button.
- class erlab.interactive.imagetool.dialogs.RotationDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.AggregateDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- erlab.interactive.imagetool.dialogs.AverageDialog[source]¶
alias of
AggregateDialog
- class erlab.interactive.imagetool.dialogs.SelectionDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.InterpolationDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.LeadingEdgeDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.CoarsenDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.ThinDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.SymmetrizeDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.SymmetrizeNfoldDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.EdgeCorrectionDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.CropToViewDialog(slicer_area)[source]¶
Bases:
_BaseCropDialog
- class erlab.interactive.imagetool.dialogs.NormalizeDialog(slicer_area)[source]¶
Bases:
DataFilterDialog
- class erlab.interactive.imagetool.dialogs.DivideByCoordDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.GaussianFilterDialog(slicer_area)[source]¶
Bases:
DataFilterDialog
- class erlab.interactive.imagetool.dialogs.SwapDimsDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.RenameDimsCoordsDialog(slicer_area)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.AssignCoordsDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.AssignAttrsDialog(slicer_area)[source]¶
Bases:
DataTransformDialog
- class erlab.interactive.imagetool.dialogs.ROIPathDialog(roi)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy:
- class erlab.interactive.imagetool.dialogs.ROIMaskDialog(roi)[source]¶
Bases:
DataTransformDialog-
enable_copy:
bool= True¶ Whether to show a button to copy the code to the clipboard.
If True, the button will be shown in the dialog box. The
make_codemethod must be overridden to provide the code to be copied.
-
enable_copy: