Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
4a289ae
Fix typo: reigstration -> registration
dandyrilla Mar 5, 2026
c72a207
Fix typo: needd -> need
dandyrilla Mar 5, 2026
56ee48f
Fix typo: optimzation -> optimization
dandyrilla Mar 5, 2026
d810431
Remove duplicate 'the's
dandyrilla Mar 5, 2026
66ddc1d
Remove 'of' from 'all of the slides'
dandyrilla Mar 5, 2026
13c0c7d
Fix typo: reigistration -> registration
dandyrilla Mar 5, 2026
053b979
Fix typo: "all of the slide" -> "all the slides"
dandyrilla Mar 5, 2026
9ed86bf
Fix typo: registeration -> registration
dandyrilla Mar 5, 2026
9543285
Fix typo: registion -> registration
dandyrilla Mar 5, 2026
749f924
Fix typo: "time consuming" -> "time-consuming"
dandyrilla Mar 5, 2026
0744ed3
Fix typo: relfecting -> reflecting
dandyrilla Mar 5, 2026
b8aaa33
Fix typo: specificed -> specified
dandyrilla Mar 5, 2026
e79df91
Fix typo: aaligned -> aligned
dandyrilla Mar 5, 2026
97969be
Fix typo: desciption -> description
dandyrilla Mar 5, 2026
7af8b4c
Fix typo: analagous -> analogous
dandyrilla Mar 5, 2026
49c601b
Fix typo: analgous -> analogous
dandyrilla Mar 5, 2026
978e350
Fix typo: begining -> beginning
dandyrilla Mar 5, 2026
7695753
Fix typo: endining -> ending
dandyrilla Mar 5, 2026
e006d72
Fix typo: appropritate -> appropriate
dandyrilla Mar 5, 2026
afd795a
Fix typo: desination -> destination
dandyrilla Mar 5, 2026
6ea9bfb
Fix typo: magntidue -> magnitude
dandyrilla Mar 5, 2026
f9bb67f
Fix typo: initialze -> initialize
dandyrilla Mar 5, 2026
161438a
Fix typo: Caclulate -> Calculate
dandyrilla Mar 5, 2026
cc09327
Fix typo: indiates -> indicates
dandyrilla Mar 5, 2026
2985b57
Fix typo: inormation -> information
dandyrilla Mar 5, 2026
090328e
Fix typo: becuase -> because
dandyrilla Mar 5, 2026
ee6b496
Fix typo: calulated -> calculated
dandyrilla Mar 5, 2026
bcdb738
Fix typo: caluclate -> calculate
dandyrilla Mar 5, 2026
013b454
Fix typo: Caclculates -> Calculates
dandyrilla Mar 5, 2026
8779431
Fix typo: alingment -> alignment
dandyrilla Mar 5, 2026
b1e5eab
Fix typo: cooresponding -> corresponding
dandyrilla Mar 5, 2026
2b2b993
Remove blank line
dandyrilla Mar 5, 2026
ab5fdb0
Fix typo: initialzing -> initializing
dandyrilla Mar 5, 2026
2324de3
Fix typo: optionaal -> optional
dandyrilla Mar 5, 2026
0922fd8
Fix typo: pyips -> pyvips
dandyrilla Mar 5, 2026
ab2c387
Fix typo: deterime -> determine
dandyrilla Mar 5, 2026
8bf4837
Fix typo: retuned -> returned
dandyrilla Mar 5, 2026
5bec7ab
Fix typo: "should indicating" -> "should indicate"
dandyrilla Mar 5, 2026
ecee268
Fix typo: assocatiated -> associated
dandyrilla Mar 5, 2026
338a335
Fix typo: nedd -> need
dandyrilla Mar 5, 2026
3aa4031
Fix typo: conductedd -> conducted
dandyrilla Mar 5, 2026
5ae37aa
Fix typo: aliged -> aligned
dandyrilla Mar 5, 2026
d9d07e6
Fix typo: inwhich -> in which
dandyrilla Mar 5, 2026
064c820
Fix typo: aligne -> aligned
dandyrilla Mar 5, 2026
838bfef
Fix typo: registeredt -> registered
dandyrilla Mar 5, 2026
31876b0
Fix typo: containin -> containing
dandyrilla Mar 5, 2026
d69d1d1
Fix typo: metatad -> metadata
dandyrilla Mar 5, 2026
7c6535f
Fix typo: contstruct -> construct
dandyrilla Mar 5, 2026
ae7dba6
Remove duplicate 'the's
dandyrilla Mar 5, 2026
e98d055
Fill in docstring title
dandyrilla Mar 5, 2026
2e9425a
Remove spaces
dandyrilla Mar 5, 2026
4fadcac
Fill empty docstrings
dandyrilla Mar 5, 2026
3e3f70a
Remove duplicate 'and's
dandyrilla Mar 5, 2026
2db26a1
Fix typo: backroung -> background
dandyrilla Mar 5, 2026
12ab40c
Fix typo: appearence -> appearance
dandyrilla Mar 5, 2026
81ce328
Fix typo: coverted -> converted
dandyrilla Mar 5, 2026
78d44ae
Fix typo: interesct -> intersect
dandyrilla Mar 5, 2026
9db6652
Fix typo: backaground -> background
dandyrilla Mar 5, 2026
dffd61b
Fix typo: vertial -> vertical
dandyrilla Mar 5, 2026
301bf3f
Fix typo: Cacluate -> Calculate
dandyrilla Mar 5, 2026
0036bf2
Fix typo: backround -> background
dandyrilla Mar 5, 2026
3d77ebf
Fix typo: greather -> greater
dandyrilla Mar 5, 2026
7639592
Fix typo: relativey -> relatively
dandyrilla Mar 5, 2026
d533518
Fix typo: Touchng -> Touching
dandyrilla Mar 5, 2026
5a16a14
Fix typo: exluded -> excluded
dandyrilla Mar 5, 2026
ff0ebbd
Insert 'to' between 'able' and 'warp'
dandyrilla Mar 5, 2026
4a3ffbb
Fix typo: keyward -> keyword
dandyrilla Mar 5, 2026
68d5ab8
Fix typo: immunofluorescent -> immunofluorescence
dandyrilla Mar 5, 2026
f44297d
Fix typo: unpickled -> un-pickled
dandyrilla Mar 5, 2026
c5e87a7
Fix typo: physcial -> physical
dandyrilla Mar 5, 2026
19efe4e
Fix typo: matix -> matrix
dandyrilla Mar 5, 2026
18f45e2
Fix typo: registartion -> registration
dandyrilla Mar 5, 2026
61046c4
Fix typo: micro_rigid_registar -> micro_rigid_registrar
dandyrilla Mar 5, 2026
5a12c8b
Fix typo: slied -> slide
dandyrilla Mar 5, 2026
1b79d49
Fix typo: QT_EMMITER_KEY -> QT_EMITTER_KEY
dandyrilla Mar 5, 2026
f71f81f
Fix typo: FLOURESCENCE -> FLUORESCENCE
dandyrilla Mar 5, 2026
4d323db
Fix typo: unwarped -> un-warped
dandyrilla Mar 5, 2026
af1398f
Fix typo: AffineOptimzer -> un-AffineOptimizer
dandyrilla Mar 5, 2026
0d2a4b5
Remove 'of'
dandyrilla Mar 5, 2026
10d5011
Fix typo: coordinaates -> coordinates
dandyrilla Mar 5, 2026
18db7bd
Fix typo: colorspaces -> colorspace
dandyrilla Mar 5, 2026
bd5c929
Fix typo: optinal -> optional
dandyrilla Mar 5, 2026
eb2a9e6
Fix typo: optinally -> optionally
dandyrilla Mar 5, 2026
c0cdae3
Fix typo: Parmaters -> Parameters
dandyrilla Mar 5, 2026
0749119
Fix typo: desciptors -> descriptors
dandyrilla Mar 5, 2026
df201c4
Fix typo: inoformation -> information
dandyrilla Mar 5, 2026
d6f854e
Fix typo: curent -> current
dandyrilla Mar 5, 2026
7bfeaf5
Fix typo: n_comparisions -> n_comparisons
dandyrilla Mar 5, 2026
203544c
Fix typo: metrric -> metric
dandyrilla Mar 5, 2026
93ef29c
Fix typo: matrics -> metrics
dandyrilla Mar 5, 2026
1b13abe
Fix typo: aleady_sorted -> already_sorted
dandyrilla Mar 5, 2026
d3e7fab
Fix typo: Indicies -> Indices
dandyrilla Mar 5, 2026
cb3eba5
Fix typo: neighbonr -> neighbor
dandyrilla Mar 5, 2026
d0d6243
Fix typo: betweewn -> between
dandyrilla Mar 5, 2026
d03e14b
Fix typo: feautres -> features
dandyrilla Mar 5, 2026
5d343a3
Fix typo: adjcent -> adjacent
dandyrilla Mar 5, 2026
edbe8de
Fix typo: disimilariy -> dissimilarity
dandyrilla Mar 5, 2026
9608467
Fix typo: reorderd -> reordered
dandyrilla Mar 5, 2026
ff2a8d2
Fix typo: similiarities -> similarities
dandyrilla Mar 5, 2026
7ff4c62
Fix typo: similariy -> similarity
dandyrilla Mar 5, 2026
763847f
Fix typo: neighgbors -> neighbors
dandyrilla Mar 5, 2026
531690c
Fix typo: relfections -> reflections
dandyrilla Mar 5, 2026
f7334ca
Fix typo: transoformations -> transformations
dandyrilla Mar 5, 2026
03dbc1b
Fix typo: alginments -> alignments
dandyrilla Mar 5, 2026
f6ca7d4
Fix typo: poisions -> positions
dandyrilla Mar 5, 2026
2e84f37
Insert determiners
dandyrilla Mar 5, 2026
031cf0d
Remove redundant 'and's
dandyrilla Mar 5, 2026
e827fee
Fix typo: corrdinates -> coordinates
dandyrilla Mar 5, 2026
da1974d
Fix typo: ignnored -> ignored
dandyrilla Mar 5, 2026
9a797d4
Fix typo: atrributes -> attributes
dandyrilla Mar 5, 2026
4ec2754
Fix typo: fescribed -> described
dandyrilla Mar 5, 2026
cee1934
Fix typo: Renmaing -> Renaming
dandyrilla Mar 5, 2026
ba3d5b8
Insert determiners
dandyrilla Mar 5, 2026
2d5f83e
Fix typo: yeild -> yield
dandyrilla Mar 5, 2026
7a3c4df
Fix typo: ImageProcesser -> ImageProcessor
dandyrilla Mar 5, 2026
a7e4370
Fix typo: IMAGES_ORDERD_KEY -> IMAGES_ORDERED_KEY
dandyrilla Mar 5, 2026
6c09946
Fix typo: presesnt -> present
dandyrilla Mar 5, 2026
2138ab8
Fix typo: procsseing -> processing
dandyrilla Mar 5, 2026
6b940e7
Fix typo: realted -> related
dandyrilla Mar 5, 2026
38a1499
Fix typo: maxmimum -> maximum
dandyrilla Mar 5, 2026
357b432
Fix typo: 'have keept' -> 'have kept'
dandyrilla Mar 5, 2026
8b4648d
Fix typo: origingated -> originated
dandyrilla Mar 5, 2026
25a87b0
Fix typo: registerd -> registered
dandyrilla Mar 5, 2026
0181b09
Fix typo: thumbanil -> thumbnail
dandyrilla Mar 5, 2026
3777dc9
Fix typo: intialize -> initialize
dandyrilla Mar 5, 2026
188036e
Fix typo: flattended -> flattened
dandyrilla Mar 5, 2026
57695ae
Insert spaces
dandyrilla Mar 5, 2026
e0dfaa6
Fix typo: ndarry -> np.ndarray
dandyrilla Mar 5, 2026
240cb58
Fix typo: Paramters -> Parameters
dandyrilla Mar 5, 2026
1ad5082
Fix typo: pvips -> pyvips
dandyrilla Mar 5, 2026
a7fe6d7
Fix typo: Phyiscal -> Physical
dandyrilla Mar 5, 2026
82acf98
Fix typo: descriiption -> description
dandyrilla Mar 5, 2026
eb2c23a
Fix typo: resppnse -> response
dandyrilla Mar 5, 2026
f34cc0a
Fix typo: dataatype -> datatype
dandyrilla Mar 5, 2026
f0d7076
Fix typo: scence_ -> scene_
dandyrilla Mar 5, 2026
011db58
Fix typo: xmml -> xml
dandyrilla Mar 5, 2026
378876c
Fix typos in comments
dandyrilla Mar 5, 2026
6e826cd
Fix typo: bioformmats -> bioformats
dandyrilla Mar 5, 2026
801ed5e
Fix typo: bioforamts -> bioformats
dandyrilla Mar 5, 2026
921fab7
Fix typo: boformats -> bioformats
dandyrilla Mar 5, 2026
98e6fa5
Fix typo: mircometer -> micrometer
dandyrilla Mar 5, 2026
9860208
Fix typo: an -> and
dandyrilla Mar 5, 2026
f1399fe
Fix typo: heigth -> height
dandyrilla Mar 5, 2026
2d1b450
Fix typo: naames -> names
dandyrilla Mar 5, 2026
562d859
Change function names: check_czi_jpegxr -> check_czi_jpgxr
dandyrilla Mar 5, 2026
8d9dd34
Add comma to the next of 'Otherwise'
dandyrilla Mar 5, 2026
ecf5f50
Make simpler expression: 'Whether or not to' -> Whether to
dandyrilla Mar 5, 2026
de2269f
Revise argument descriptions
dandyrilla Mar 5, 2026
f6f15bc
Fix typo: Guassian -> Gaussian
dandyrilla Mar 5, 2026
036af14
Fix typo: ridid -> rigid
dandyrilla Mar 5, 2026
b3b065a
Fix typo: 'inside of' -> 'inside'
dandyrilla Mar 5, 2026
aae5eb9
Fix typo: corressponding -> corresponding
dandyrilla Mar 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions examples/acrobat_2023/valis/affine_optimizer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Optimize rigid alignment

Contains functions related to optimization, as well as the AffineOptimizer
class that performs the optimzation. This class can be subclassed to implement
class that performs the optimization. This class can be subclassed to implement
custom optimization methods.

There are several subclasses, but AffineOptimizerMattesMI is the
There are several subclasses, but AffineOptimizerMattesMI is
the fastest and most accurate, and so is default affine optimizer in VALIS.
It's not recommended that the other subclasses be used, but they are kept
to provide examples on how to subclass AffineOptimizer.
Expand Down Expand Up @@ -348,7 +348,7 @@ def build_P(A, B, r, mask):
@nba.njit()
def entropy(x):
"""
Caclulate Shannon's entropy for array x
Calculate Shannon's entropy for array x

Parameters
----------
Expand Down Expand Up @@ -473,7 +473,7 @@ def MI(fixed, moving, nb, spacing):


class AffineOptimizer(object):
"""Class that optimizes ridid registration
"""Class that optimizes rigid registration

Attributes
----------
Expand All @@ -492,10 +492,10 @@ class AffineOptimizer(object):
Type of transformation, "EuclideanTransform" or "SimilarityTransform"

current_level : int
Current level of the Guassian pyramid that is being registered
Current level of the Gaussian pyramid that is being registered

accepts_xy : bool
Bool declaring whether or not the optimizer will use corresponding points to optimize the registration
Boolean indicating whether the optimizer uses corresponding points to optimize registration.

Methods
-------
Expand All @@ -521,9 +521,9 @@ class AffineOptimizer(object):
to have a new cost_fxn method. See AffineOptimizerDisplacement for an example implementing a new cost function

Major overhauls are possible too. See AffineOptimizerMattesMI for an example on using SimpleITK's
optimization methods inside of an AffineOptimizer subclass
optimization methods inside an AffineOptimizer subclass

If the optimizer uses corressponding points, then the class attribute
If the optimizer uses corresponding points, then the class attribute
accepts_xy needs to be set to True. The default is False.

"""
Expand Down Expand Up @@ -567,7 +567,7 @@ def setup(self, moving, fixed, mask, initial_M=None):
Image moving is warped to align to

mask : ndarray
2D array having non-zero pixel values, where values of 0 are ignnored during registration
2D array having non-zero pixel values, where values of 0 are ignored during registration

initial_M : (3x3) array
Initial transformation matrix
Expand Down Expand Up @@ -628,7 +628,7 @@ def align(self, moving, fixed, mask, initial_M=None, moving_xy=None, fixed_xy=No
Image moving is warped to align with

mask : ndarray
2D array having non-zero pixel values, where values of 0 are ignnored during registration
2D array having non-zero pixel values, where values of 0 are ignored during registration

initial_M : (3x3) array
Initial transformation matrix
Expand Down Expand Up @@ -813,7 +813,7 @@ def setup(self, moving, fixed, mask, initial_M=None, moving_xy=None, fixed_xy=No
Image moving is warped to align to

mask : ndarray
2D array having non-zero pixel values, where values of 0 are ignnored during registration
2D array having non-zero pixel values, where values of 0 are ignored during registration

initial_M : (3x3) array
Initial transformation matrix
Expand Down Expand Up @@ -880,7 +880,7 @@ def align(self, moving, fixed, mask, initial_M=None,
Image moving is warped to align with

mask : ndarray
2D array having non-zero pixel values, where values of 0 are ignnored during registration
2D array having non-zero pixel values, where values of 0 are ignored during registration

initial_M : (3x3) array
Initial transformation matrix
Expand Down Expand Up @@ -995,7 +995,7 @@ def shannon_entropy(self, X, k=1):
def mutual_information(self, A, B):

if self.HA_list[self.current_level] is None:
# Only need to caluclate once per level, becuase the fixed
# Only need to calculate once per level, because the fixed
# image doesn't change

self.HA_list[self.current_level] = self.shannon_entropy(A)
Expand Down Expand Up @@ -1098,7 +1098,7 @@ def calc_cost(self, p):
return self.cost_fxn(fixed_intensities, moving_intensities, self.pyramid_mask[self.current_level])

def cost_fxn(self, fixed_intensities, transformed_intensities, mask):
"""
"""Cost function
"""
results, _, _ = np.histogram2d(fixed_intensities, transformed_intensities, bins=self.nbins)
n = np.sum(results)
Expand Down
14 changes: 7 additions & 7 deletions examples/acrobat_2023/valis/feature_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def filter_features(kp, desc, n_keep=MAX_FEATURES):
"""Get keypoints with highest response
"""Get keypoints with the highest response

Parameters
----------
Expand All @@ -43,7 +43,7 @@ def filter_features(kp, desc, n_keep=MAX_FEATURES):

Returns
-------
Keypoints and and corresponding descriptors that the the n_keep highest
Keypoints and corresponding descriptors that the n_keep highest
responses.

"""
Expand Down Expand Up @@ -145,11 +145,11 @@ def detect_and_compute(self, image, mask=None):

Returns
-------
kp : ndarry
(N, 2) array positions of keypoints in xy corrdinates for N
kp : np.ndarray
(N, 2) array positions of keypoints in xy coordinates for N
keypoints

desc : ndarry
desc : np.ndarray
(N, M) array containing M features for each of the N keypoints

"""
Expand Down Expand Up @@ -289,8 +289,8 @@ def detect(self, image):

Uses keypoint info to create KeyPoint objects for OpenCV

Paramters
---------
Parameters
----------
image : ndarray
image from keypoints will be detected

Expand Down
8 changes: 4 additions & 4 deletions examples/acrobat_2023/valis/micro_rigid_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MicroRigidRegistrar(object):
Attributes
----------
val_obj : Valis
The "parent" object that registers all of the slides.
The "parent" object that registers all the slides.

feature_detector_cls : FeatureDD, optional
Uninstantiated FeatureDD object that detects and computes
Expand All @@ -47,7 +47,7 @@ class MicroRigidRegistrar(object):
Matcher object that will be used to match image features

scale : float
Degree of downsampling to use for the reigistration, based on the
Degree of downsampling to use for the registration, based on the
registered WSI shape (i.e. Slide.aligned_slide_shape_rc)

tile_wh : int
Expand All @@ -74,7 +74,7 @@ def __init__(self, val_obj, feature_detector_cls=DEFAULT_FD,
Parameters
----------
val_obj : Valis
The "parent" object that registers all of the slides.
The "parent" object that registers all the slides.

feature_detector_cls : FeatureDD, optional
Uninstantiated FeatureDD object that detects and computes
Expand All @@ -87,7 +87,7 @@ def __init__(self, val_obj, feature_detector_cls=DEFAULT_FD,
Matcher object that will be used to match image features

scale : float
Degree of downsampling to use for the reigistration, based on the
Degree of downsampling to use for the registration, based on the
registered WSI shape (i.e. Slide.aligned_slide_shape_rc)

tile_wh : int
Expand Down
48 changes: 24 additions & 24 deletions examples/acrobat_2023/valis/non_rigid_registrars.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class NonRigidRegistrar(object):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

shape : tuple
Expand Down Expand Up @@ -90,11 +90,11 @@ def __init__(self, params=None):
Parameters
----------
params : dictionary
Keyword: value dictionary of parameters to be used in reigstration.
Keyword: value dictionary of parameters to be used in registration.
Will get used in the calc() method.

In the case where simple ITK will be used, params should be
a SimpleITK.ParameterMap. Note that numeric values needd to be
a SimpleITK.ParameterMap. Note that numeric values need to be
converted to strings.

"""
Expand Down Expand Up @@ -128,9 +128,9 @@ def apply_mask(self, mask):
return masked_moving, masked_fixed

def calc(self, moving_img, fixed_img, mask, *args, **kwargs):
"""Cacluate displacement fields
"""Calculate displacement fields

Can record subclass specific atrributes here too
Can record subclass specific attributes here too

Parameters
----------
Expand All @@ -142,7 +142,7 @@ def calc(self, moving_img, fixed_img, mask, *args, **kwargs):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

Returns
Expand Down Expand Up @@ -188,7 +188,7 @@ def register(self, moving_img, fixed_img, mask=None, **kwargs):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

**kwargs : dict, optional
Expand Down Expand Up @@ -337,7 +337,7 @@ class NonRigidRegistrarXY(NonRigidRegistrar):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

shape : tuple
Expand Down Expand Up @@ -388,11 +388,11 @@ def __init__(self, params=None):
Parameters
----------
params : dictionary
Keyword: value dictionary of parameters to be used in reigstration.
Keyword: value dictionary of parameters to be used in registration.
Will get used in the calc() method.

In the case where simple ITK will be used, params should be
a SimpleITK.ParameterMap. Note that numeric values needd to be
a SimpleITK.ParameterMap. Note that numeric values need to be
converted to strings.

moving_xy : ndarray, optional
Expand Down Expand Up @@ -427,7 +427,7 @@ def register(self, moving_img, fixed_img, mask=None, moving_xy=None,

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

moving_xy : ndarray, optional
Expand Down Expand Up @@ -497,7 +497,7 @@ class NonRigidRegistrarGroupwise(NonRigidRegistrar):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

shape : tuple of int
Expand Down Expand Up @@ -789,7 +789,7 @@ def run_elastix(self, moving_img, fixed_img, moving_xy=None, fixed_xy=None,

mask : ndarray, optional
2D array with shape (N,M) where non-zero pixel values are
foreground, and 0 is background, which is ignnored during
foreground, and 0 is background, which is ignored during
registration. If None, then all non-zero pixels in images
will be used to create the mask.

Expand Down Expand Up @@ -929,7 +929,7 @@ def __init__(self, params=None, optical_flow_obj=None,
Parameters
----------
params : dictionary
Keyword: value dictionary of parameters to be used in reigstration.
Keyword: value dictionary of parameters to be used in registration.
Will get used in the calc() method.

optical_flow_obj : object
Expand Down Expand Up @@ -964,7 +964,7 @@ def __init__(self, params=None, optical_flow_obj=None,
Folded regions will then be removed using inpainting.

If "regularize", folded regions will be detected and
regularized using the method fescribed in
regularized using the method described in
"Foldover-free maps in 50 lines of code" Garanzha et al. 2021.

If "None" then no smoothing will be applied.
Expand Down Expand Up @@ -1032,7 +1032,7 @@ class SimpleElastixGroupwiseWarper(NonRigidRegistrarGroupwise):

mask : ndarray
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

shape : tuple of int
Expand Down Expand Up @@ -1170,7 +1170,7 @@ class NonRigidTileRegistrar(object):

mask : pyvips.Image
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

shape : tuple
Expand All @@ -1197,11 +1197,11 @@ def __init__(self, params=None, tile_wh=512, tile_buffer=100):
Parameters
----------
params : dictionary
Keyword: value dictionary of parameters to be used in reigstration.
Keyword: value dictionary of parameters to be used in registration.
Will get used when initializing the `non_rigid_registrar_cls`

In the case where simple ITK will be used, params should be
a SimpleITK.ParameterMap. Note that numeric values needd to be
a SimpleITK.ParameterMap. Note that numeric values need to be
converted to strings.

tile_wh : int
Expand Down Expand Up @@ -1354,7 +1354,7 @@ def reg_tile(self, tile_idx, lock):
self.pbar.update(1)

def calc(self, *args, **kwargs):
"""Cacluate displacement fields
"""Calculate displacement fields
Each tile is registered and then stitched together
"""

Expand Down Expand Up @@ -1390,18 +1390,18 @@ def register(self, moving_img, fixed_img, mask=None, non_rigid_registrar_cls=Opt

mask : ndarray, pyvips.Image
2D array with shape (N,M) where non-zero pixel values are foreground,
and 0 is background, which is ignnored during registration. If None,
and 0 is background, which is ignored during registration. If None,
then all non-zero pixels in images will be used to create the mask.

non_rigid_registrar_cls : NonRigidRegistrar, optional
Uninstantiated NonRigidRegistrar class that will be used
to calculate the deformation fields between images.

processing_cls : preprocessing.ImageProcesser, optional
preprocessing.ImageProcesser used to process the images
processing_cls : preprocessing.ImageProcessor, optional
preprocessing.ImageProcessor used to process the images

processing_kwargs : dict
Dictionary of keyward arguments to be passed to `processing_cls`
Dictionary of keyword arguments to be passed to `processing_cls`

target_stats : ndarray
Target stats used to normalize each tile after being processed.
Expand Down
Loading