See my answer on StackOverflow for more detail. (In the future, please pick one forum or the other.)
--Tim On Friday, February 20, 2015 10:59:59 AM DumpsterDoofus wrote: > I have an `M` by `N` by 3 array of floating-point reals which I would like > to interpret as the HSV channels of an image. I would like to generate and > export the image. > > According to the function documentation, > colorim(A, [colorspace]) > > > Creates a 2d color image from an AbstractArray, auto-detecting which of > > the first or last dimension encodes the color and choosing between > > "horizontal-" and "vertical-major" accordingly. colorspace defaults to > > "RGB" but could also be e.g."Lab" or "HSV". > > I first tested the RGB case: > using Images > imwrite(colorim(rand(Float64, 200, 200, 3), "RGB"), "Image.PNG") > > which produces a random color image. However, when I replace "RGB" with > "HSV" as per the documentation, I get an error message. > > What is the correct syntax to interpret and export an array as HSV data? > > (Minor note: I also cross-posted this on StackOverflow here > <http://stackoverflow.com/questions/28635900/generate-an-hsv-image-from-an-m > -by-n-by-3-array-in-julia> .)
