The links you posted are incomplete.
Pete
Search found 1015 matches
- 2013-12-24T10:51:50-07:00
- Forum: Users
- Topic: Hot to get Foot Presure
- Replies: 1
- Views: 3997
- 2013-11-07T09:04:07-07:00
- Forum: Magick++
- Topic: -fx in Magick++
- Replies: 19
- Views: 41883
Re: -fx in Magick++
In MagickCore/composite.h there are these two composite operations:
Would either of those help? Again, I'm not familiar with C++/Magick++ so I don't know how to apply these to a Magick++ program.
Pete
Code: Select all
DivideDstCompositeOp,
DivideSrcCompositeOp,
Pete
- 2013-11-06T18:41:36-07:00
- Forum: Magick++
- Topic: -fx in Magick++
- Replies: 19
- Views: 41883
Re: -fx in Magick++
I found there is a function Image.fx but it gets std::string as parameter which is a mathematical function what to do. The string parameter is just the formula that was specified in the command line version "u*v / p{64,64}" fx also takes a second parameter which is the channels which are ...
- 2013-09-27T08:28:06-07:00
- Forum: Users
- Topic: Hide text in visual part of image?
- Replies: 3
- Views: 5784
Re: Hide text in visual part of image?
Try the -stegano option of convert.
Pete
Pete
- 2013-09-08T08:21:33-07:00
- Forum: MagickWand
- Topic: How to get the image brightness?
- Replies: 3
- Views: 18204
Re: How to get the image brightness?
I haven't tried this and also haven't used HSB colour space, but I think this will extract what you want: PixelWand *pw; float percent; int r,g,b; MagickGetImagePixelColor(magick_wand,0,0,pw); r = PixelGetRedQuantum(pw); g = PixelGetGreenQuantum(pw); b = PixelGetBluequantum(pw); percent = (float)b/M...
- 2013-04-16T09:31:49-07:00
- Forum: Users
- Topic: How to make grayscale anaglyph (stereo) image
- Replies: 6
- Views: 12488
Re: How to make grayscale anaglyph (stereo) image
You should be able to create the anaglyph with one command. The -stereo option handles the selection of the correct channels.
Pete
Code: Select all
composite left.jpg right.jpg -stereo 0 3d.jpg
- 2013-04-13T20:49:06-07:00
- Forum: MagickWand for PHP
- Topic: Preserving Alpha with MagickCompositeImage
- Replies: 5
- Views: 97315
Re: Preserving Alpha with MagickCompositeImage
Try enabling the alpha channel in the main image after creating it:
Pete
Code: Select all
MagickSetImageAlphaChannel($main_image,MW_SetAlphaChannel);
- 2013-04-09T17:23:52-07:00
- Forum: Magick++
- Topic: Unable to Read EXIF attributes from Image
- Replies: 4
- Views: 20933
Re: Unable to Read EXIF attributes from Image
It worked for me once the std:string from attribute is converted to a C string.
Pete
Code: Select all
printf("DateTime: %s\n",img_test.attribute("EXIF:DateTime" ).c_str());
- 2013-04-06T08:42:25-07:00
- Forum: Magick++
- Topic: Loading and outputting .BMP images.
- Replies: 1
- Views: 9045
Re: Loading and outputting .BMP images.
That code works for me with your input file and converting to a BMP. But to output a PNG you need to add a page statement after the crop:
Otherwise you will have a 127x127 image on a 128x128 canvas.
Pete
Code: Select all
image.page( Magick::Geometry(127, 127, 0, 0) );
Pete
- 2013-04-05T08:55:01-07:00
- Forum: MagickWand
- Topic: Strange error (Assertion Failed) when averaging images
- Replies: 7
- Views: 22420
Re: Strange error (Assertion Failed) when averaging images
Before MagickEvaluateImages add this:
Pete
Code: Select all
MagickResetIterator(imagem);
- 2013-04-04T20:54:20-07:00
- Forum: MagickWand
- Topic: Strange error (Assertion Failed) when averaging images
- Replies: 7
- Views: 22420
Re: Strange error (Assertion Failed) when averaging images
In place of imagem = MagickAverageImages(imagem); try imagem = MagickEvaluateImages(imagem,MeanEvaluateOperator); But I think it is a mistake to overwrite imagem with the new image. You would be better off to declare another MagickWand and do this sort of thing: MagickWand *mw; mw = MagickEvaluateIm...
- 2013-03-23T10:07:18-07:00
- Forum: MagickWand
- Topic: Image statistics - need help
- Replies: 2
- Views: 12885
Re: Image statistics - need help
Show us some of the statistics you get when you use the builtin logo: image.
Pete
Pete
- 2013-03-23T08:34:37-07:00
- Forum: MagickWand
- Topic: Image statistics - need help
- Replies: 2
- Views: 12885
Re: Image statistics - need help
At the moment I can't see anything wrong with the code except that when you are done you should free up the channel statistics:
Pete
Code: Select all
MagickRelinquishMemory(chan_stat);
- 2013-02-22T08:08:28-07:00
- Forum: Developers
- Topic: File size / resolution limits for MagickReadImage?
- Replies: 15
- Views: 29463
Re: File size / resolution limits for MagickReadImage?
ImageMagick can handle images that are much larger than 3264 x 2448. There may be something wrong with the original image. Do an identify -verbose on it and see if either "identify" complains about the file or something odd shows up in the output. Failing that, you may have to post the ima...
- 2013-02-14T16:09:48-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28731
Re: Error I'm getting with MagickCore but not MagickWand
I have it figured out (I hope). The MagickSetOption doesn't set the fuzz that is used by the compareImages function. It needs MagickSetFuzz to do that. Here's a snippet that works: MagickReadImage(img1, "original-after-transform.jpg"); MagickSetImageArtifact(img1,"highlight-color"...