Documentation http://www.imagemagick.org/api/enhance.php says:
MagickBooleanType GammaImage(Image *image,const double gamma)
but code says:
MagickExport MagickBooleanType GammaImage(Image *image,const char *level)
Thanks,
Pat.
Search found 6 matches
- 2011-03-23T16:03:52-07:00
- Forum: Bugs
- Topic: GammaImage Function Prototype/Documentation Error
- Replies: 2
- Views: 5935
- 2011-03-23T06:47:42-07:00
- Forum: Magick++
- Topic: Linear Stretch with Magick++
- Replies: 6
- Views: 27880
Re: Linear Stretch with Magick++
Figured it out:
MagickCore::Image* img_core = img->image();
Works great.
Thanks.
Pat.
MagickCore::Image* img_core = img->image();
Works great.
Thanks.
Pat.
- 2011-03-23T06:32:57-07:00
- Forum: Magick++
- Topic: Linear Stretch with Magick++
- Replies: 6
- Views: 27880
Re: Linear Stretch with Magick++
Ok did that.
But now, how would you convert a Magick::Image* to a MagickCore::Image* ?
A straight cast does not seem to be enough.
Assertion failed: (image->signature == MagickSignature), function ContrastStretchImageChannel
Thanks again.
Pat.
But now, how would you convert a Magick::Image* to a MagickCore::Image* ?
A straight cast does not seem to be enough.
Assertion failed: (image->signature == MagickSignature), function ContrastStretchImageChannel
Thanks again.
Pat.
- 2011-03-22T19:22:27-07:00
- Forum: Magick++
- Topic: Linear Stretch with Magick++
- Replies: 6
- Views: 27880
Re: Linear Stretch with Magick++
I tried to use the MagicCore C Api with Magick++ API but it is not working too well.
I am getting error: 'ContrastStretchImage' was not declared in this scope!
Not sure if you can mix the two APIs or if anyone tried to do this before.
Any help would be appreciated.
Thanks,
Pat.
I am getting error: 'ContrastStretchImage' was not declared in this scope!
Not sure if you can mix the two APIs or if anyone tried to do this before.
Any help would be appreciated.
Thanks,
Pat.
- 2011-03-22T14:51:44-07:00
- Forum: Magick++
- Topic: Linear Stretch with Magick++
- Replies: 6
- Views: 27880
Linear Stretch with Magick++
With the Magick++ API, how can I do a 5% linear stretch...something equivalent to: >convert test.png -linear-stretch 5x5% level.png [interestingly convert test.png -linear-stretch 5x95% level.png did not work] I tried to use "level" but it did not seem to produce the expected results my example ...
- 2011-02-16T11:14:02-07:00
- Forum: Bugs
- Topic: MAGICK_THREAD_LIMIT = 0 doesn't disable OpenMP
- Replies: 22
- Views: 88519
Re: MAGICK_THREAD_LIMIT = 0 doesn't disable OpenMP
I have the exact same problem on the Mac.
ImageMagick 6.6.1-5 2010-11-15 Q16
Has this been resolved or addressed by any chance?
Thanks.
Pat.
ImageMagick 6.6.1-5 2010-11-15 Q16
Has this been resolved or addressed by any chance?
Thanks.
Pat.