Skip to content

Commit 54fe656

Browse files
committed
Update image linear calibration parameter and translations for XYZ axis support
1 parent 5aad4bb commit 54fe656

8 files changed

Lines changed: 59 additions & 27 deletions

File tree

datalab/gui/processor/image.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ def register_computations(self) -> None:
178178
self.register_1_to_1(
179179
sigima_image.calibration,
180180
_("Linear calibration"),
181-
sigima_image.ZCalibrateParam,
181+
sigima_image.XYZCalibrateParam,
182+
comment=_(
183+
"Apply linear calibration to the X, Y or Z axis:\n"
184+
" • x' = ax + b\n"
185+
" • y' = ay + b\n"
186+
" • z' = az + b"
187+
),
182188
)
183189
self.register_1_to_1(
184190
sigima_image.swap_axes,

datalab/locale/fr/LC_MESSAGES/datalab.po

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: datalab\n"
88
"Report-Msgid-Bugs-To: p.raybaut@codra.fr\n"
9-
"POT-Creation-Date: 2025-07-15 18:13+0200\n"
9+
"POT-Creation-Date: 2025-07-15 18:53+0200\n"
1010
"PO-Revision-Date: 2025-05-22 15:46+0200\n"
1111
"Last-Translator: Christophe Debonnel <c.debonnel@codra.fr>\n"
1212
"Language: fr\n"
@@ -974,6 +974,16 @@ msgstr "Profil radial"
974974
msgid "Linear calibration"
975975
msgstr "Étalonnage linéaire"
976976

977+
msgid ""
978+
"Apply linear calibration to the X, Y or Z axis:\n"
979+
" • x' = ax + b\n"
980+
" • y' = ay + b\n"
981+
" • z' = az + b"
982+
msgstr "Appliquer un étalonnage linéaire à l'axe X, Y ou Z :\n"
983+
" • x' = ax + b\n"
984+
" • y' = ay + b\n"
985+
" • z' = az + b"
986+
977987
msgid "Swap X/Y axes"
978988
msgstr "Permuter les axes X/Y"
979989

@@ -1257,7 +1267,9 @@ msgid ""
12571267
"Apply linear calibration to the X or Y axis:\n"
12581268
" • x' = ax + b\n"
12591269
" • y' = ay + b"
1260-
msgstr ""
1270+
msgstr "Appliquer un étalonnage linéaire à l'axe X ou Y :\n"
1271+
" • x' = ax + b\n"
1272+
" • y' = ay + b"
12611273

12621274
msgid "Reverse X-axis"
12631275
msgstr "Inverser l'axe des X"
@@ -2347,4 +2359,3 @@ msgstr "Merci de sélectionner le fichier à importer."
23472359

23482360
msgid "Example Wizard"
23492361
msgstr "Assistant exemple"
2350-

datalab/tests/scenarios/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def run_image_computations(
311311
compute_common_operations(panel)
312312

313313
# Test denoising methods
314-
param = sigima.params.ZCalibrateParam.create(a=1.2, b=0.1)
314+
param = sigima.params.XYZCalibrateParam.create(axis="z", a=1.2, b=0.1)
315315
panel.processor.run_feature("calibration", param)
316316
param = sigima.params.DenoiseTVParam()
317317
panel.processor.run_feature("denoise_tv", param)

doc/locale/fr/LC_MESSAGES/api/computation.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,10 @@ msgstr ""
13251325
msgid "Image linear calibration parameters"
13261326
msgstr ""
13271327

1328-
msgid "Returns a new instance of :py:class:`ZCalibrateParam` with the fields set to the given values."
1328+
msgid "Returns a new instance of :py:class:`XYZCalibrateParam` with the fields set to the given values."
13291329
msgstr ""
13301330

1331-
msgid "New instance of :py:class:`ZCalibrateParam`."
1331+
msgid "New instance of :py:class:`XYZCalibrateParam`."
13321332
msgstr ""
13331333

13341334
msgid "calibration parameters"

doc/locale/fr/LC_MESSAGES/api/param.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,10 @@ msgstr ""
784784
msgid "Image linear calibration parameters"
785785
msgstr "Paramètres de calibration linéaire de l'image"
786786

787-
msgid "Returns a new instance of :py:class:`ZCalibrateParam` with the fields set to the given values."
787+
msgid "Returns a new instance of :py:class:`XYZCalibrateParam` with the fields set to the given values."
788788
msgstr ""
789789

790-
msgid "New instance of :py:class:`ZCalibrateParam`."
790+
msgid "New instance of :py:class:`XYZCalibrateParam`."
791791
msgstr ""
792792

793793
msgid "Zero padding parameters for 2D images"

doc/locale/fr/LC_MESSAGES/api/params.po

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: DataLab \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-07-15 10:28+0200\n"
11+
"POT-Creation-Date: 2025-07-15 18:53+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: fr\n"
@@ -259,7 +259,7 @@ msgstr ""
259259
msgid "New instance of :py:class:`NormalizeParam`."
260260
msgstr ""
261261

262-
msgid "Spectrum parameters"
262+
msgid "Spectrum parameters."
263263
msgstr ""
264264

265265
msgid "Default: False."
@@ -820,10 +820,13 @@ msgstr ""
820820
msgid "Image linear calibration parameters"
821821
msgstr ""
822822

823-
msgid "Returns a new instance of :py:class:`ZCalibrateParam` with the fields set to the given values."
823+
msgid "Calibrate\\. Single choice from: 'x', 'y', 'z'. Default: 'z'."
824824
msgstr ""
825825

826-
msgid "New instance of :py:class:`ZCalibrateParam`."
826+
msgid "Returns a new instance of :py:class:`XYZCalibrateParam` with the fields set to the given values."
827+
msgstr ""
828+
829+
msgid "New instance of :py:class:`XYZCalibrateParam`."
827830
msgstr ""
828831

829832
msgid "Zero padding parameters for 2D images"

doc/locale/fr/LC_MESSAGES/api/proc.po

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: DataLab \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-07-15 10:28+0200\n"
11+
"POT-Creation-Date: 2025-07-15 18:53+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: fr\n"
@@ -211,7 +211,7 @@ msgstr ""
211211
msgid "New instance of :py:class:`FFTParam`."
212212
msgstr ""
213213

214-
msgid "Spectrum parameters"
214+
msgid "Spectrum parameters."
215215
msgstr ""
216216

217217
msgid "Default: False."
@@ -728,19 +728,25 @@ msgstr ""
728728
msgid "Result signal object."
729729
msgstr ""
730730

731-
msgid "Compute FFT with :py:func:`sigima.tools.signal.fourier.fft1d`"
731+
msgid "Compute FFT with :py:func:`sigima.tools.signal.fourier.fft1d`."
732732
msgstr ""
733733

734734
msgid "Compute the inverse FFT with :py:func:`sigima.tools.signal.fourier.ifft1d`."
735735
msgstr ""
736736

737-
msgid "Compute magnitude spectrum with :py:func:`sigima.tools.signal.fourier.magnitude_spectrum`"
737+
msgid "Compute magnitude spectrum."
738738
msgstr ""
739739

740-
msgid "Compute phase spectrum with :py:func:`sigima.tools.signal.fourier.phase_spectrum`"
740+
msgid "This function computes the magnitude spectrum of a signal using :py:func:`sigima.tools.signal.fourier.magnitude_spectrum`."
741741
msgstr ""
742742

743-
msgid "Compute power spectral density with :py:func:`sigima.tools.signal.fourier.psd`"
743+
msgid "Compute phase spectrum."
744+
msgstr ""
745+
746+
msgid "This function computes the phase spectrum of a signal using :py:func:`sigima.tools.signal.fourier.phase_spectrum`"
747+
msgstr ""
748+
749+
msgid "Compute power spectral density with :py:func:`sigima.tools.signal.fourier.psd`."
744750
msgstr ""
745751

746752
msgid "Polynomial fitting parameters"
@@ -1364,10 +1370,13 @@ msgstr ""
13641370
msgid "Image linear calibration parameters"
13651371
msgstr ""
13661372

1367-
msgid "Returns a new instance of :py:class:`ZCalibrateParam` with the fields set to the given values."
1373+
msgid "Calibrate\\. Single choice from: 'x', 'y', 'z'. Default: 'z'."
1374+
msgstr ""
1375+
1376+
msgid "Returns a new instance of :py:class:`XYZCalibrateParam` with the fields set to the given values."
13681377
msgstr ""
13691378

1370-
msgid "New instance of :py:class:`ZCalibrateParam`."
1379+
msgid "New instance of :py:class:`XYZCalibrateParam`."
13711380
msgstr ""
13721381

13731382
msgid "calibration parameters"

doc/locale/fr/LC_MESSAGES/api/tools.po

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: DataLab \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-07-15 10:28+0200\n"
11+
"POT-Creation-Date: 2025-07-15 18:13+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: fr\n"
@@ -401,22 +401,25 @@ msgstr ""
401401
msgid "Compute magnitude spectrum."
402402
msgstr ""
403403

404-
msgid "Use log scale. Defaults to False."
404+
msgid "Compute the magnitude spectrum root-power level in decibel (dB)."
405405
msgstr ""
406406

407-
msgid "Magnitude spectrum (X data, Y data)"
407+
msgid "Frequency values and magnitude spectrum."
408408
msgstr ""
409409

410410
msgid "Compute phase spectrum."
411411
msgstr ""
412412

413-
msgid "Phase spectrum in degrees (X data, Y data)"
413+
msgid "Frequency values and phase spectrum in degrees."
414414
msgstr ""
415415

416-
msgid "Compute Power Spectral Density (PSD), using the Welch method."
416+
msgid "Estimate the Power Spectral Density (PSD) using Welch's method."
417417
msgstr ""
418418

419-
msgid "X data, Y data (tuple)"
419+
msgid "Compute the power spectral density power level in decibel (dB)."
420+
msgstr ""
421+
422+
msgid "Frequency values and PSD."
420423
msgstr ""
421424

422425
msgid "Apply a brickwall filter (ideal frequency filter) to a 1D signal."

0 commit comments

Comments
 (0)