I've found that Magick++ uses linear color spaces by default. How can I convert an RGB Image into R'G'B' ?
I imagine the relation between the color spaces is v' = √(v * max(v)), v ∈ RGB, v' ∈ R'G'B'. But is there a straightforward function ready to do the conversion?
Search found 2 matches
Search found 2 matches • Page 1 of 1
- Forum: Magick++
- Topic: Get color of pixel with Magick++
- Replies: 2
- Views: 15552
Resuming this old but pertinent thread, I found myself in trouble when trying to extract the integer value of channel's pixels. Here's my code. Cout always prints 65535, whatever image file is processed, whatever coordinates the pixel is picked from. Since the image is grayscale, I'd expect I should...