You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the toy code below demonstrates the problem: a one-pixel green RGB image is displayed as green, but is displayed as red when converted to HSV:
# Activate a brand-new environment
import Pkg
Pkg.activate(temp=true)
Pkg.add(["Images", "ImageView"])
using Images
using ImageView
# Prepare one-pixel RGB image
x = zeros(RGB{N0f8}, (1,1))
x .= RGB(0, 1, 0) # green
imshow(x, name="RGB") # correctly displays green
# Convert to HSV
y = HSV.(x) # conversion seems to be correct, HSV{Float32}(120.0f0,1.0f0,1.0f0)
imshow(y, name="HSV") # diplays red instead of green!
Hello,
the toy code below demonstrates the problem: a one-pixel green RGB image is displayed as green, but is displayed as red when converted to HSV:
Information for the troubleshooting:
The text was updated successfully, but these errors were encountered: