Skip to content

Commit

Permalink
Fix typos (#263)
Browse files Browse the repository at this point in the history
* Update structural_similarity_index.jl

* Update watershed.jl

* Update install.md

* Update index.md

* Update rgb_grayscale.jl

* Update contour_detection.jl

* Update detecting_corners.jl

* Update image_diffview.jl
  • Loading branch information
pitmonticone authored Aug 1, 2023
1 parent caa553f commit 88307c2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/examples/color_channels/rgb_grayscale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rgb_image = testimage("lighthouse")
gray_image = Gray.(rgb_image)
mosaicview(rgb_image, gray_image; nrow = 1)

# Gray scale conversion form RGB follows a weighted sum of all channels, the coffecients are computed according to
# Gray scale conversion form RGB follows a weighted sum of all channels, the coefficients are computed according to
# [Rec. ITU-R BT.601-7](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.601-7-201103-I!!PDF-E.pdf) rounding off to 3 decimal places
# `0.299 * R + 0.587 * G + 0.114 * B`

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/contours/contour_detection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ using Images, TestImages, FileIO
## N NE E SE S SW W NW
## direction between two pixels

## rotate direction clocwise
## rotate direction clockwise
function clockwise(dir)
return (dir)%8 + 1
end

## rotate direction counterclocwise
## rotate direction counterclockwise
function counterclockwise(dir)
return (dir+6)%8 + 1
end
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/contours/detecting_corners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mosaicview(img_copies; nrow=1)
# change abruptly at corner points, giving rise to large gradients. However, this makes them
# computationally expensive.

# The *FAST (Features from Accelarated Segment Test) Corner Detector* is a feature
# The *FAST (Features from Accelerated Segment Test) Corner Detector* is a feature
# detection algorithm which is designed to be computationally cheaper, and hence much faster.
# It classifies a pixel $P$ as a corner if at least $n$ contiguous points out of the 16
# points in a circle around it have intensities either higher (or lower) than that of $P$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ img_noise = img_orig + noise
mosaicview(img_const, img_noise; nrow=1)
save("assets/ssim.png", img_noise) #src

# We use the `mse` funtion defined in `ImageDistances` to calculate the mean squared
# We use the `mse` function defined in `ImageDistances` to calculate the mean squared
# error between the original and the two modified images.

mse(img_orig, img_const), mse(img_orig, img_noise)
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/image_segmentation/watershed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ bw_transform_example = feature_transform(bw_example)

# For example, the closest `true` to `bw_example[1,1]` exists at `CartesianIndex(2, 2)`,
# hence it's assigned `CartesianIndex(2, 2)`. For other positions in `bw_example` it is
# processed similarily.
# processed similarly.

dist = 1 .- distance_transform(bw_transform)
dist_example = 1 .- distance_transform(bw_transform_example)

# | Dist(distance tranform for img) | Dist(distance transform for img_example) |
# | Dist(distance transform for img) | Dist(distance transform for img_example) |
# | :---:| :-----------:|
# |![](assets/contour1.png) | ![](assets/dist_example.png) |

Expand Down Expand Up @@ -82,7 +82,7 @@ colored_labels = IndirectArray(labels, distinguishable_colors(maximum(labels)))
masked_colored_labels = colored_labels .* (1 .- bw)
mosaic(img, colored_labels, masked_colored_labels; nrow=1)

# Here we use `IndirectArray` to store the indexed image, for more explaination on it please
# Here we use `IndirectArray` to store the indexed image, for more explanation on it please
# check the tutorial [Indexed image in 5 minutes](@ref demo_indexed_image).

save("assets/watershed.gif", cat(img, colored_labels, masked_colored_labels; dims=3); fps=1) #src
2 changes: 1 addition & 1 deletion docs/examples/spatial_transformation/image_diffview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# date: 2020-03-07
# ---

# This demonstration shows some common tricks in image comparision -- difference view
# This demonstration shows some common tricks in image comparison -- difference view

# People with MATLAB experiences would miss the function
# [`imshowpair`](https://www.mathworks.com/help/images/ref/imshowpair.html), but in JuliaImages
Expand Down
2 changes: 1 addition & 1 deletion docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ These backends aren't exclusive to each other, so if you're a macOS user, you ca
backends. And in most cases, you don't need to directly interact with these backends, instead, we
use the `save` and `load` provided by the [`FileIO.jl`](https://github.com/JuliaIO/FileIO.jl)
frontend. If you've installed multiple backends then `FileIO` will choose the most appropriate
backend acoording to your file format. For example, if available `ImageIO` is used to load PNG
backend according to your file format. For example, if available `ImageIO` is used to load PNG
files.

Adding these gives you a basic image IO setup:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pkgs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ you are interested in most.

!!! tip
For package developers, `Images.jl` is usually a large dependency to be included in the `deps` section of
your `Project.toml`. Hence it is reccomended to add only `ImageCore` together with the exact sub-packages
your `Project.toml`. Hence it is recommended to add only `ImageCore` together with the exact sub-packages
you need. You can use `@which` to find out the exact package and file a method/function belongs to.

JuliaImages is not a closed ecosystem; it works nicely with many other packages outside of JuliaImages.
Expand Down

0 comments on commit 88307c2

Please sign in to comment.