Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions docs/examples/color_channels/rgb_grayscale.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---
# title: RGB to GrayScale
# cover: assets/rgb_grayscale.png
# cover: assets/rgb_grayscale.gif
# ---

# This example illustrates RGB to Grayscale Conversion
Expand All @@ -19,4 +19,5 @@ mosaicview(rgb_image, gray_image; nrow = 1)
# [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`

save("assets/rgb_grayscale.png", gray_image) #src
using ImageMagick #src
ImageMagick.save("assets/rgb_grayscale.gif", cat(rgb_image, RGB.(gray_image); dims=3); fps=1) #src