Search found 2 matches

by Davide
2014-02-12T17:25:18-07:00
Forum: Magick++
Topic: Colorspace conversion
Replies: 0
Views: 7890

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
2014-02-12T14:13:36-07:00
Forum: Magick++
Topic: Get color of pixel with Magick++
Replies: 2
Views: 18030

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