Skip to content

Commit

Permalink
Fix codespell errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Jun 21, 2023
1 parent aa94489 commit f80fd32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/generalsr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ image in the report.
Scoord (spatial coordinate) Content Items describe locations in 2D image
coordinates. Image coordinates are decimal numbers with sub-pixel accuracy that
are defined in a coordinate system from (0.0, 0.0) at the top left corner of
the top left pixel of the image and (rows, colums) at the bottom right corner
the top left pixel of the image and (rows, columns) at the bottom right corner
of the bottom right pixel of the image. I.e. the center of the top left pixel
is at location (0.5, 0.5).

Expand Down Expand Up @@ -249,7 +249,7 @@ Content Items like this:
relationship_type=hd.sr.RelationshipTypeValues.INFERRED_FROM,
)
# A tracking identifier identifying the measurment
# A tracking identifier identifying the measurement
tracking_item = hd.sr.UIDRefContentItem(
name=codes.DCM.TrackingIdentifier,
value=hd.UID(), # a newly generated UID
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Parsing Structured Report (SR) documents
----------------------------------------

Highdicom has special support for parsing structured reports conforming to the
TID1500 "Measurment Report" template using specialized Python classes for
TID1500 "Measurement Report" template using specialized Python classes for
templates.

.. code-block:: python
Expand Down
10 changes: 5 additions & 5 deletions docs/seg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ to 1. A second attribute, "Segmentation Fractional Type" (0062,0010) specifies
how these values should be interpreted. There are two options, represented by
the enumerated type :class:`highdicom.seg.SegmentationFractionalTypeValues`:

- ``"PROBABILITY"``, i.e. the number between 0 and 1 respresents a probability
- ``"PROBABILITY"``, i.e. the number between 0 and 1 represents a probability
that a pixel belongs to the segment
- ``"OCCUPANCY"`` i.e. the number represents the fraction of the volume of the
pixel's (or voxel's) area (or volume) that belongs to the segment
Expand Down Expand Up @@ -292,8 +292,8 @@ a convenient shorthand for the special case where there is only a single source
frame and a single segment. It is equivalent in every way to passing a 3D array
with a single frame down axis 0.

Constructing Binary SEG Images of Multiframe Souce Images
---------------------------------------------------------
Constructing Binary SEG Images of Multiframe Source Images
----------------------------------------------------------

Alternatively, we could create a segmentation of a source image that is itself
a multiframe image (such as an Enhanced CT, Enhanced MR image, or a Whole Slide
Expand Down Expand Up @@ -714,12 +714,12 @@ frames are stored within the SEG as an array indexed by a frame number
SEG a lot of freedom about how to organize the resulting frames within the 1D
list within the SEG. To complicate matters further, frames in the segmentation
image that would otherwise be "empty" (contain only 0s) may be omitted from the
SEG image entirely (this is `highdicom`'s default behavior but cant be turned
SEG image entirely (this is `highdicom`'s default behavior but can be turned
off if you prefer by specifying ``omit_empty_frames=False`` in the constructor).

Every ``pydicom.Dataset`` has the ``.pixel_array`` property, which, in the case
of a multiframe image, returns the full list of frames in the image as an array
of shape (frames x rows x colums), with frames organized in whatever manner
of shape (frames x rows x columns), with frames organized in whatever manner
they were organized in by the creator of the object. A
:class:`highdicom.seg.Segmentation` is a sub-class of ``pydicom.Dataset``, and
therefore also has the ``.pixel_array`` property. However, given the
Expand Down

0 comments on commit f80fd32

Please sign in to comment.