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: nipype/interfaces/cat12/preprocess.py
+52-31Lines changed: 52 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -608,67 +608,79 @@ class CAT12SANLMDenoisingInputSpec(SPMCommandInputSpec):
608
608
0,
609
609
2,
610
610
512,
611
-
field='spm_type',
611
+
field="spm_type",
612
612
usedefault=True,
613
-
desc='Data type of the output images. 0 = same, 2 = uint8, 512 = uint16, 16 = single (32 bit)'
613
+
desc="Data type of the output images. 0 = same, 2 = uint8, 512 = uint16, 16 = single (32 bit)",
614
+
)
614
615
616
+
intlim=traits.Int(
617
+
field="intlim",
618
+
default_value=100,
619
+
usedefault=True,
620
+
desc="intensity limitation (default = 100)",
615
621
)
616
622
617
623
filename_prefix=traits.Str(
618
-
field='prefix',
619
-
default_value='sanlm_',
624
+
field="prefix",
625
+
default_value="sanlm_",
620
626
usedefault=True,
621
-
desc='Filename prefix. Specify the string to be prepended to the filenames of the filtered image file(s).',
627
+
desc="Filename prefix. Specify the string to be prepended to the filenames of the filtered image file(s).",
622
628
)
623
629
624
630
filename_suffix=traits.Str(
625
-
field='suffix',
626
-
default_value='',
631
+
field="suffix",
632
+
default_value="",
627
633
usedefault=True,
628
-
desc='Filename suffix. Specify the string to be appended to the filenames of the filtered image file(s).'
634
+
desc="Filename suffix. Specify the string to be appended to the filenames of the filtered image file(s).",
629
635
)
630
636
631
637
addnoise=traits.Float(
632
638
default_value=0.5,
633
639
usedefault=True,
634
-
field='addnoise',
635
-
desc='Strength of additional noise in noise-free regions. Add minimal amount of noise in regions without any noise to avoid image segmentation problems. This parameter defines the strength of additional noise as percentage of the average signal intensity.')
640
+
field="addnoise",
641
+
desc="""Strength of additional noise in noise-free regions.
642
+
Add minimal amount of noise in regions without any noise to avoid image segmentation problems.
643
+
This parameter defines the strength of additional noise as percentage of the average signal intensity.""",
644
+
)
636
645
637
646
rician=traits.Bool(
638
647
True,
639
-
field='rician',
648
+
field="rician",
640
649
usedefault=True,
641
-
desc='''Rician noise
642
-
MRIs can have Gaussian or Rician distributed noise with uniform or nonuniform variance across the image. If SNR is high enough
643
-
(>3) noise can be well approximated by Gaussian noise in the foreground. However, for SENSE reconstruction or DTI data a Rician
644
-
distribution is expected. Please note that the Rician noise estimation is sensitive for large signals in the neighbourhood and can lead to
645
-
artefacts, e.g. cortex can be affected by very high values in the scalp or in blood vessels.''')
650
+
desc="""Rician noise
651
+
MRIs can have Gaussian or Rician distributed noise with uniform or nonuniform variance across the image.
652
+
If SNR is high enough (>3) noise can be well approximated by Gaussian noise in the foreground. However, for
653
+
SENSE reconstruction or DTI data a Rician distribution is expected. Please note that the Rician noise estimation
654
+
is sensitive for large signals in the neighbourhood and can lead to artefacts, e.g. cortex can be affected by
655
+
very high values in the scalp or in blood vessels.""",
656
+
)
646
657
647
658
replace_nan_and_inf=traits.Bool(
648
659
True,
649
-
field='replaceNANandINF',
660
+
field="replaceNANandINF",
650
661
usedefault=True,
651
-
desc='Replace NAN by 0, -INF by the minimum and INF by the maximum of the image.'
662
+
desc="Replace NAN by 0, -INF by the minimum and INF by the maximum of the image.",
652
663
)
653
664
654
665
noisecorr_strength=traits.Enum(
655
-
'-Inf',
666
+
"-Inf",
656
667
2,
657
668
4,
658
-
field='nlmfilter.optimized.NCstr',
669
+
field="nlmfilter.optimized.NCstr",
659
670
usedefault=True,
660
-
desc='''Strength of Noise Corrections
661
-
Strength of the (sub-resolution) spatial adaptive non local means (SANLM) noise correction. Please note that the filter strength is
662
-
automatically estimated. Change this parameter only for specific conditions. The "light" option applies half of the filter strength of the
663
-
adaptive "medium" cases, whereas the "strong" option uses the full filter strength, force sub-resolution filtering and applies an
664
-
additional iteration. Sub-resolution filtering is only used in case of high image resolution below 0.8 mm or in case of the "strong"
665
-
option. light = 2, medium = -Inf, strong = 4'''
671
+
desc="""Strength of Noise Corrections
672
+
Strength of the (sub-resolution) spatial adaptive non local means (SANLM) noise correction. Please note
673
+
that the filter strength is automatically estimated. Change this parameter only for specific conditions. The
674
+
"light" option applies half of the filter strength of the adaptive "medium" cases, whereas the "strong"
675
+
option uses the full filter strength, force sub-resolution filtering and applies an additional iteration.
676
+
Sub-resolution filtering is only used in case of high image resolution below 0.8 mm or in case of the
0 commit comments