Search found 1017 matches

by el_supremo
2013-12-24T10:51:50-07:00
Forum: Users
Topic: Hot to get Foot Presure
Replies: 1
Views: 1223

Re: Hot to get Foot Presure

The links you posted are incomplete.

Pete
by el_supremo
2013-11-07T09:04:07-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 16465

Re: -fx in Magick++

In MagickCore/composite.h there are these two composite operations:

Code: Select all

  DivideDstCompositeOp,
  DivideSrcCompositeOp,
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
by el_supremo
2013-11-06T18:41:36-07:00
Forum: Magick++
Topic: -fx in Magick++
Replies: 19
Views: 16465

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 affected. ...
by el_supremo
2013-09-27T08:28:06-07:00
Forum: Users
Topic: Hide text in visual part of image?
Replies: 3
Views: 2083

Re: Hide text in visual part of image?

Try the -stegano option of convert.

Pete
by el_supremo
2013-09-08T08:21:33-07:00
Forum: MagickWand
Topic: How to get the image brightness?
Replies: 3
Views: 8280

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...
by el_supremo
2013-04-16T09:31:49-07:00
Forum: Users
Topic: How to make grayscale anaglyph (stereo) image
Replies: 6
Views: 6576

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.

Code: Select all

composite left.jpg right.jpg -stereo 0 3d.jpg
Pete
by el_supremo
2013-04-13T20:49:06-07:00
Forum: MagickWand for PHP
Topic: Preserving Alpha with MagickCompositeImage
Replies: 5
Views: 16991

Re: Preserving Alpha with MagickCompositeImage

Try enabling the alpha channel in the main image after creating it:

Code: Select all

MagickSetImageAlphaChannel($main_image,MW_SetAlphaChannel);
Pete
by el_supremo
2013-04-09T17:23:52-07:00
Forum: Magick++
Topic: Unable to Read EXIF attributes from Image
Replies: 4
Views: 13437

Re: Unable to Read EXIF attributes from Image

It worked for me once the std:string from attribute is converted to a C string.

Code: Select all

	printf("DateTime: %s\n",img_test.attribute("EXIF:DateTime" ).c_str());
Pete
by el_supremo
2013-04-06T08:42:25-07:00
Forum: Magick++
Topic: Loading and outputting .BMP images.
Replies: 1
Views: 4961

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:

Code: Select all

	image.page( Magick::Geometry(127, 127, 0, 0) );
Otherwise you will have a 127x127 image on a 128x128 canvas.

Pete
by el_supremo
2013-04-05T08:55:01-07:00
Forum: MagickWand
Topic: Strange error (Assertion Failed) when averaging images
Replies: 7
Views: 10818

Re: Strange error (Assertion Failed) when averaging images

Before MagickEvaluateImages add this:

Code: Select all

MagickResetIterator(imagem);
Pete
by el_supremo
2013-04-04T20:54:20-07:00
Forum: MagickWand
Topic: Strange error (Assertion Failed) when averaging images
Replies: 7
Views: 10818

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...
by el_supremo
2013-03-23T10:07:18-07:00
Forum: MagickWand
Topic: Image statistics - need help
Replies: 2
Views: 5966

Re: Image statistics - need help

Show us some of the statistics you get when you use the builtin logo: image.

Pete
by el_supremo
2013-03-23T08:34:37-07:00
Forum: MagickWand
Topic: Image statistics - need help
Replies: 2
Views: 5966

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:

Code: Select all

    MagickRelinquishMemory(chan_stat);
Pete
by el_supremo
2013-02-22T08:08:28-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 14865

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 image so that...
by el_supremo
2013-02-14T16:09:48-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14290

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","blue"); MagickSet...