Search found 2 matches

by Davide
Forum: Magick++
Topic: Colorspace conversion
Replies: 0
Views: 6001

Colorspace conversion

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?
by Davide
Forum: Magick++
Topic: Get color of pixel with Magick++
Replies: 2
Views: 15552

Re: Get color of pixel with Magick++

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...