Skip to content

Commit

Permalink
docs: update rgb2gray
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Nov 25, 2024
1 parent a17a50e commit 737d139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/histogram_equalization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ end
rgb2gray(rgbchannels::Array{Float64, 3})
Convert an array of RGB channel data to grayscale in the range [0, 255].
Identical to MATLAB `rgb2gray` (https://www.mathworks.com/help/matlab/ref/rgb2gray.html).
"""
function rgb2gray(rgbchannels::Array{Float64,3})
r, g, b = [to_uint8(rgbchannels[:, :, i]) for i in 1:3]
Expand Down

0 comments on commit 737d139

Please sign in to comment.