Hello. I am using the Images package to do some processing. I have an RGB image
img, and I’d like to create a view such that I can index channels by name. My idea was to derive view slices from the channelView:
cv = channelview(img) myview = Dict("red" => (@view cv[1, :, :]), "green" => (@view cv[2, :, :]), "blue" => (@view cv[3, :, :])) #Rotate the red channel 180 degrees: myview["red"] = imrotate(myview["red"], pi, axes(img), 0) #converting error
Can someone explain why this doesn’t work, yet the
cv[1,:,:] equivalent does?