Search found 5 matches

by Zeranoe
2017-08-10T06:10:28-07:00
Forum: Bugs
Topic: error C2065: 'Quantum': undeclared identifier
Replies: 2
Views: 5193

Re: error C2065: 'Quantum': undeclared identifier

I'm using MSVC 2017 and compiled with: cl "/IC:\Program Files\ImageMagick-7.0.6-Q16\include" bug.cc The error is two lines: bug.cc(6): error C2065: 'Quantum': undeclared identifier bug.cc(6): error C2059: syntax error: 'constant' I can reproduce this same bug in Ubuntu 17.04 with: g++ -I/usr/include ...
by Zeranoe
2017-08-09T21:42:19-07:00
Forum: Bugs
Topic: error C2065: 'Quantum': undeclared identifier
Replies: 2
Views: 5193

error C2065: 'Quantum': undeclared identifier

When compiling this: #include <iostream> #include "Magick++.h" int main() { std::cout << QuantumRange << std::endl; } I get: error C2065: 'Quantum': undeclared identifier This appears to be a namespace issue. I thought it might be in the MagickCore namespace, but that didn't work either.
by Zeranoe
2017-08-07T06:07:46-07:00
Forum: Users
Topic: Decode CR2 with Magick++
Replies: 4
Views: 4940

Re: Decode CR2 with Magick++

The camera encoded JPEG looks slightly smaller (4368x2912) than the raw CR2 image (4386x2920).

However the CR2 to BMP image is much brighter:
Image

than the camera JPEG:
Image
by Zeranoe
2017-08-06T20:56:56-07:00
Forum: Users
Topic: Decode CR2 with Magick++
Replies: 4
Views: 4940

Re: Decode CR2 with Magick++

After your "img.read", the image is not in Bayer format. You have found that the top-left pixel of a de-bayered image is different to the top-left pixel of the in-camera JPG. Well, yes, is that surprising? I know that the decoded raw image I'm dealing with is no longer in Bayer filter format, since ...
by Zeranoe
2017-08-06T14:29:38-07:00
Forum: Users
Topic: Decode CR2 with Magick++
Replies: 4
Views: 4940

Decode CR2 with Magick++

I'm trying to decode a raw CR2 image with Magick++ but am getting some strange results. I want to get the RGB color values for each pixel so I can loop through them and do some analysis. To decode the CR2 I'm using: Image img; img.read("cr2:image.CR2"); Pixels view(img); Quantum *pixels = view.get(0 ...