Description: Fix some spelling errors.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Last-Update: 2025-10-20
---

--- mia.orig/mia/2d/filter/sortlabel.cc
+++ mia/mia/2d/filter/sortlabel.cc
@@ -119,7 +119,7 @@
 const std::string CSortLabelFilterPlugin::do_get_descr()const
 {
        return "This plug-in sorts the labels of a gray-scale image so that the lowest label "
-              "value corresponts to the lable with themost pixels. The background (0) is not touched";
+              "value corresponts to the label with themost pixels. The background (0) is not touched";
 }
 
 extern "C" EXPORT CPluginBase *get_plugin_interface()
--- mia.orig/mia/template/seededwatershed.hh
+++ mia/mia/template/seededwatershed.hh
@@ -310,7 +310,7 @@
        m_input_is_gradient(false)
 {
        this->add_parameter("seed", new CStringParameter(m_seed_image_file, CCmdOptionFlags::required_input,
-                           "seed input image containing the lables for the initial regions"));
+                           "seed input image containing the labels for the initial regions"));
        this->add_parameter("n", make_param(m_neighborhood, "sphere:r=1", false, "Neighborhood for watershead region growing"));
        this->add_parameter("mark", new CBoolParameter(m_with_borders, false, "Mark the segmented watersheds with a special gray scale value"));
        this->add_parameter("grad", new CBoolParameter(m_input_is_gradient, false, "Interpret the input image as gradient. "));
--- mia.orig/src/2dfluid-syn-registration.cc
+++ mia/src/2dfluid-syn-registration.cc
@@ -99,9 +99,9 @@
        options.set_group("Registration");
        options.add(make_opt( mg_levels, "mg-levels", 'l', "Number of multi-resolution levels to run the "
                              "registration on. Not that some registration parameters can be given as a "
-                             "coma seperated list to indicate per level values. In these cases  if the "
+                             "coma separated list to indicate per level values. In these cases  if the "
                              "number of given values is smaller than the number of multi-resolution "
-                             "levels (this parameter), the the last given value is used for all subsequest "
+                             "levels (this parameter), the the last given value is used for all subsequent "
                              "multi-resolution levels."));
        options.add(make_opt(current_step,  EParameterBounds::bf_min_open | EParameterBounds::bf_max_closed,
        {0.0f, 0.5f},  "step", 'S', "Initial step size for all levels"));
--- mia.orig/src/2dfuzzysegment.cc
+++ mia/src/2dfuzzysegment.cc
@@ -64,7 +64,7 @@
        CCmdOptionList options(g_description);
        options.set_group("File-IO");
        options.add(make_opt( in_filename, "in-file", 'i',
-                             "input image(s) to be segmenetd", CCmdOptionFlags::required_input, &imageio));
+                             "input image(s) to be segmented", CCmdOptionFlags::required_input, &imageio));
        options.add(make_opt( cls_filename, "cls-file", 'c',
                              "output class probability images (floating point values and multi-image)",
                              CCmdOptionFlags::output, &imageio));
--- mia.orig/src/2dmyocard-ica.cc
+++ mia/src/2dmyocard-ica.cc
@@ -53,7 +53,7 @@
 
        {
               pdi_example_descr, "Evaluate the synthetic references from images imageXXXX.exr and save them to "
-              "refXXXX.exr by using five independend components, mean stripping, normalizing, "
+              "refXXXX.exr by using five independent components, mean stripping, normalizing, "
               "and skipping 2 images."
        },
 
--- mia.orig/src/2dmyocard-icaseries.cc
+++ mia/src/2dmyocard-icaseries.cc
@@ -55,7 +55,7 @@
        },
        {
               pdi_example_descr, "Evaluate the synthetic references from set segment.set and save "
-              "them to refXXXX.??? by using five independend components, and skipping 2 images. "
+              "them to refXXXX.??? by using five independent components, and skipping 2 images. "
               "Per default a bounding box around the LV will be segmented and scaled by 1.4 and "
               "the cropped images will be saved to cropXXXX.??? and a segmentation set cropped.set "
               " is created. The image file type ??? is deducted from the input images in segment.set."
--- mia.orig/src/2dsegment-local-cmeans.cc
+++ mia/src/2dsegment-local-cmeans.cc
@@ -153,7 +153,7 @@
        opts.add(make_opt( cmeans_epsilon, EParameterBounds::bf_min_open,
        {0.0}, "c-means-epsilon", 'e', "c-means breaking condition for update tolerance"));
        opts.add(make_opt( rel_cluster_threshold, EParameterBounds::bf_min_closed | EParameterBounds::bf_max_open,
-       {0.0, 1.0}, "relative-cluster-threshold", 't', "threshhold to ignore classes when initializing"
+       {0.0, 1.0}, "relative-cluster-threshold", 't', "threshold to ignore classes when initializing"
        " the local cmeans from the global one."));
 
        if (opts.parse(argc, argv) != CCmdOptionList::hr_no)
--- mia.orig/src/2dsegseriesstats.cc
+++ mia/src/2dsegseriesstats.cc
@@ -35,7 +35,7 @@
 
        {
               pdi_description, "This program is used evaluate various time-intensity curves over a series of images "
-              "given by a segmentation set. Specifically, the program is taylored to evaluate average "
+              "given by a segmentation set. Specifically, the program is tailored to evaluate average "
               "intensities and variations of sections the left ventricle myocardium. "
               "The segmentation set must contain the segmentations for all slices that will be accessed "
               "during evaluation. "
--- mia.orig/src/2dseries-mincorr.cc
+++ mia/src/2dseries-mincorr.cc
@@ -37,7 +37,7 @@
        {pdi_group, "Tools for Myocardial Perfusion Analysis"},
        {pdi_short, "Evaluate minimal correlation of time-intensity curves."},
        {
-              pdi_description, "Given a set of images of temporal sucession, this program evaluates the "
+              pdi_description, "Given a set of images of temporal succession, this program evaluates the "
               "minimal correlation of the time-intensity curve between neighboring pixels."
        },
        {
--- mia.orig/src/2dseries2sets.cc
+++ mia/src/2dseries2sets.cc
@@ -39,7 +39,7 @@
               pdi_description, "This program takes all image files that are given as free parameters "
               "on the command line and creates segmentation sets based on information found in the images. "
               "Used information is the z-location of the slice and the acquisition number. "
-              "The code is taylored to used the according descriptors defined in the DICOM standard. "
+              "The code is tailored to use the according descriptors defined in the DICOM standard. "
               "All images with the same slice location will be grouped together in one segmentation "
               "set and ordered according to their acquisition number. "
               "Slice locations are rounded to three digits accuracy to make proper comparison "
--- mia.orig/src/2dseriescorr.cc
+++ mia/src/2dseriescorr.cc
@@ -40,7 +40,7 @@
        {pdi_short, "Evaluate the time-intensity correlation in a series of images."},
 
        {
-              pdi_description, "Given a set of images of temporal sucession, evaluates images that represent "
+              pdi_description, "Given a set of images of temporal succession, evaluates images that represent "
               "the time-intensity correlation in horizontal and vertical direction as "
               "well as average correlation of each pixel with its neighbors. "
               "All input images must be of the same pixel type and size."
--- mia.orig/src/2dseriesgradMAD.cc
+++ mia/src/2dseriesgradMAD.cc
@@ -38,7 +38,7 @@
        {pdi_group, "Tools for Myocardial Perfusion Analysis"},
        {pdi_short, "Evaluate the time-intensity gradient MAD in a series of images."},
        {
-              pdi_description, "Given a set of images of temporal sucession, evaluates the "
+              pdi_description, "Given a set of images of temporal succession, evaluates the "
               "pixel-wise temporal gradient and then its median average distance (MAD) "
               "and stores the result in an image. Spacial pre-filtering may be applied "
               "as given additional plugin(s) (filter/2dimage)."
--- mia.orig/src/2dseriesgradvariation.cc
+++ mia/src/2dseriesgradvariation.cc
@@ -40,7 +40,7 @@
        {pdi_short, "Evaluate the time-intensity gradient variation in a series of images."},
 
        {
-              pdi_description, "Given a set of images of temporal sucession, this program evaluates the "
+              pdi_description, "Given a set of images of temporal succession, this program evaluates the "
               "gradient variation of the pixel-wise time-intensity curves of this series. "
               "If the input image set provides a segmentation, then this segmentation can "
               "be used to create a bounding box and restrict evaluation to this box. "
--- mia.orig/src/2dseriessmoothgradMAD.cc
+++ mia/src/2dseriessmoothgradMAD.cc
@@ -40,7 +40,7 @@
        {pdi_short, "Evaluate pixel-wise time-intensity gradient of a 2D image series."},
 
        {
-              pdi_description, "Given a set of images of temporal sucession, evaluate the temporal "
+              pdi_description, "Given a set of images of temporal succession, evaluate the temporal "
               "pixel-wise gaussian and evaluate pixel-wise its MAD."
               "A spacial pre-filtering may be applied by specifying additional plugins "
               "(filter/2dimage)"
--- mia.orig/src/2dtransform.cc
+++ mia/src/2dtransform.cc
@@ -36,7 +36,7 @@
        {pdi_description, "This program is used to deform a 2D image using a given transformation."},
 
        {
-              pdi_example_descr, "Transform an image input.png by the transfromation stored in trans.v "
+              pdi_example_descr, "Transform an image input.png by the transformation stored in trans.v "
               "by using linear interpolation and zero boundary conditions and store the result in output.png"
        },
 
--- mia.orig/src/3dcrispsegment.cc
+++ mia/src/3dcrispsegment.cc
@@ -31,7 +31,7 @@
        {pdi_short, "Label segmentation according to probabilities."},
        {
               pdi_description, "This program creates a label image from a fuzzy segmentation. "
-              "or each pixel the label is set to the class with the higest probability plus a given offset"
+              "or each pixel the label is set to the class with the highest probability plus a given offset"
        },
        {
               pdi_example_descr, "Set the labels based on the input class probability file cls.v "
--- mia.orig/src/3dfluid-syn-registration.cc
+++ mia/src/3dfluid-syn-registration.cc
@@ -98,10 +98,10 @@
 {
        options.set_group("Registration");
        options.add(make_opt( mg_levels, "mg-levels", 'l', "Number of multi-resolution levels to run the registration on. "
-                             "Not that some registration parameters can be given as a coma seperated list to "
+                             "Not that some registration parameters can be given as a coma separated list to "
                              "indicate per level values. In these cases  if the number of given values is smaller "
                              "than the number of multi-resolution levels (this parameter), the the last given value "
-                             "is used for all subsequest multi-resolution levels."));
+                             "is used for all subsequent multi-resolution levels."));
        options.add(make_opt(current_step,  EParameterBounds::bf_min_open | EParameterBounds::bf_max_closed,
        {0.0f, 0.5f},  "step", 'S', "Initial step size for all levels"));
        options.add(make_opt( cost, "ssd", "cost", 'c', "Image similarity function to be minimized"));
--- mia.orig/src/3dfuzzysegment.cc
+++ mia/src/3dfuzzysegment.cc
@@ -65,10 +65,10 @@
        float  residuum = 0.1;
        const auto& imageio = C3DImageIOPluginHandler::instance();
        CCmdOptionList options(g_description);
-       options.add(make_opt( in_filename, "in-file", 'i', "input image(s) to be segmenetd",
+       options.add(make_opt( in_filename, "in-file", 'i', "input image(s) to be segmented",
                              CCmdOptionFlags::required_input, &imageio));
        options.add(make_opt( cls_filename, "cls-file", 'c', "output class probability images. Note, the "
-                             "used file format must support multible images (best is to use vista)",
+                             "used file format must support multiple images (best is to use vista)",
                              CCmdOptionFlags::output, &imageio));
        options.add(make_opt( out_filename, "b0-file", 'o', "image corrected for intensity non-uniformity",
                              CCmdOptionFlags::output, &imageio));
--- mia.orig/src/3dlandmarks-transform.cc
+++ mia/src/3dlandmarks-transform.cc
@@ -47,7 +47,7 @@
 
        {
               pdi_example_descr,
-              "Transform the landmarks given in input.lmx by applyning the transfromation stored in trans.v "
+              "Transform the landmarks given in input.lmx by applying the transformation stored in trans.v "
               "and store the result in output.lmx"
        },
 
--- mia.orig/src/3dmaskseeded.cc
+++ mia/src/3dmaskseeded.cc
@@ -39,7 +39,7 @@
               pdi_description, "3D image segmentation based on region growing from a seed point. "
               "Neighboring points are added, either when their intensity is "
               "equal or higher than that of the seed point, or of the intensity "
-              "is lower or equal then that of the neighoring point. "
+              "is lower or equal then that of the neighboring point. "
               "After region growing is finished, this mask is used to zero out "
               "the region in the original image yielding the resulting image. "
        },
--- mia.orig/src/3dsegment-local-cmeans.cc
+++ mia/src/3dsegment-local-cmeans.cc
@@ -176,7 +176,7 @@
        opts.add(make_opt( cmeans_epsilon, EParameterBounds::bf_min_open,
        {0.0}, "c-means-epsilon", 'e', "c-means breaking condition for update tolerance"));
        opts.add(make_opt( rel_cluster_threshold, EParameterBounds::bf_min_closed | EParameterBounds::bf_max_open,
-       {0.0, 1.0}, "relative-cluster-threshold", 't', "threshhold to ignore classes when initializing"
+       {0.0, 1.0}, "relative-cluster-threshold", 't', "threshold to ignore classes when initializing"
        " the local cmeans from the global one."));
        opts.add(make_opt(ignore_partition_with_background, "ignore-background", 'B',
                          "Don't take background probablities into account when desiding whether classes are to be ignored"));
--- mia.orig/src/3dtransform.cc
+++ mia/src/3dtransform.cc
@@ -45,7 +45,7 @@
 
        {
               pdi_example_descr,
-              "Transform an image input.v by the transfromation stored in trans.v "
+              "Transform an image input.v by the transformation stored in trans.v "
               "by using nearest neighbour interpolation ans store the result in output.v"
        },
 
--- mia.orig/src/raw2volume.cc
+++ mia/src/raw2volume.cc
@@ -44,7 +44,7 @@
 
        {
               pdi_description, "This program is used to convert raw data into 3D images "
-              "with apropriate metadata."
+              "with appropriate metadata."
        },
 
        {pdi_example_descr, "pixel size of <1.2, 2.3, 3.4> to an Analyze file image.hdr"},
--- mia.orig/mia/2d/perfusion.cc
+++ mia/mia/2d/perfusion.cc
@@ -555,7 +555,7 @@
               if (nc < 7)
                      goto retry;
 
-              cvmsg() << "Directional assumtion failed\n";
+              cvmsg() << "Directional assumption failed\n";
               return result;
        }
 
--- mia.orig/mia/2d/segset.cc
+++ mia/mia/2d/segset.cc
@@ -180,7 +180,7 @@
                      if (attr.empty())
                             cvwarn() << "CSegFrame: LVpeak without attribute";
                      else if (!from_string(attr, m_RV_peak)) {
-                            cvwarn() << "Could't convert RV_peak attribute '" << attr
+                            cvwarn() << "Couldn't convert RV_peak attribute '" << attr
                                      << "' to an integer; ignoring\n";
                             m_RV_peak = -1;
                      }
@@ -190,7 +190,7 @@
                      if (attr.empty())
                             cvwarn() << "CSegFrame: LVpeak without attribute";
                      else if (!from_string(attr, m_LV_peak)) {
-                            cvwarn() << "Could't convert LV_peak attribute '" << attr
+                            cvwarn() << "Couldn't convert LV_peak attribute '" << attr
                                      << "' to an integer; ignoring\n";
                             m_LV_peak = -1;
                      }
@@ -200,7 +200,7 @@
                      if (attr.empty())
                             cvwarn() << "CSegFrame: PreferedRef without attribute";
                      else if (!from_string(attr, m_preferred_reference)) {
-                            cvwarn() << "Could't convert PreferedRef attribute '" << attr
+                            cvwarn() << "Couldn't convert PreferedRef attribute '" << attr
                                      << "' to an integer; ignoring\n";
                             m_preferred_reference = -1;
                      }
--- mia.orig/mia/core/fastica/deflationnonlinearity.cc
+++ mia/mia/core/fastica/deflationnonlinearity.cc
@@ -198,7 +198,7 @@
 const std::string CFastICADeflGaussPlugin::do_get_descr()const
 {
        return "Implementation of the Gauss non-linearity for the deflation based "
-              "FastICA algorithm. Use it when the independend components are highly "
+              "FastICA algorithm. Use it when the independent components are highly "
               "super-Gaussian or robustness is very important.";
 }
 
--- mia.orig/mia/core/fastica/fastica.cc
+++ mia/mia/core/fastica/fastica.cc
@@ -150,7 +150,7 @@
 
        // update the number of components
        m_numOfIC = pca_result.eval.size();
-       cvdebug() << "Considering " << m_numOfIC << " independend components\n";
+       cvdebug() << "Considering " << m_numOfIC << " independent components\n";
        cvdebug() << "PCA: eval= " << pca_result.eval << "\n";
        cvdebug() << "PCA: evec= " << pca_result.evec << "\n";
        evaluate_whiten_matrix(pca_result.evec, pca_result.eval);
--- mia.orig/mia/core/handlerbase.cc
+++ mia/mia/core/handlerbase.cc
@@ -66,7 +66,7 @@
        if (handler_map.find(m_descriptor) != handler_map.end())
               return;
 
-       cvdebug() << "Add '"  << m_descriptor << "' to dependend handlers\n";
+       cvdebug() << "Add '"  << m_descriptor << "' to dependent handlers\n";
        handler_map[m_descriptor] = this;
        do_add_dependend_handlers(handler_map);
 }
--- mia.orig/mia/core/ica.cc
+++ mia/mia/core/ica.cc
@@ -65,7 +65,7 @@
 
 template<>  const char *const
 TPluginHandler<TFactory<CIndepCompAnalysisFactory>>::m_help =
-                     "These plug-ins provide implementations for the ICA algoritm.";
+                     "These plug-ins provide implementations for the ICA algorithm.";
 
 EXPLICIT_INSTANCE_HANDLER(CIndepCompAnalysisFactory);
 
--- mia.orig/mia/core/plugin_base.cc
+++ mia/mia/core/plugin_base.cc
@@ -74,7 +74,7 @@
 void CPluginBase::add_dependend_handlers(HandlerHelpMap& handler_map)
 {
        TRACE_FUNCTION;
-       cvdebug() << "Add dependend handler for plugin '" << get_name() << "'\n";
+       cvdebug() << "Add dependent handler for plugin '" << get_name() << "'\n";
        get_parameters().add_dependend_handlers(handler_map);
 }
 
--- mia.orig/src/2dmyocard-segment.cc
+++ mia/src/2dmyocard-segment.cc
@@ -495,7 +495,7 @@
        if (perf_idx < 0)
               throw runtime_error("perfusion could not be identified");
 
-       cvmsg() << "Using " << test_components << " independend components\n";
+       cvmsg() << "Using " << test_components << " independent components\n";
        // after running ICA get the related feature images
        auto RV_feature = ica->get_feature_image(rv_idx);
        auto LV_feature = ica->get_feature_image(lv_idx);
--- mia.orig/src/wavelettrans.cc
+++ mia/src/wavelettrans.cc
@@ -173,7 +173,7 @@
        C1DWavelet wt(wt_type, k);
 
        for (unsigned int i = 0; i < vx.size(); ++i) {
-              cvdebug() << "transfrom column of size " << table[i].size() << "\n";
+              cvdebug() << "transform column of size " << table[i].size() << "\n";
               table[i] = wt.forward(table[i]);
               cverb << " result size = " << table[i].size() << "\n";
        }
