Search found 14 matches

by bigtable
2011-07-23T19:53:11-07:00
Forum: PerlMagick
Topic: draw & rotate or affine path
Replies: 7
Views: 28584

Re: draw & rotate or affine path

In case anyone is ever interested, my work-around for what I think is a bug in PerlMagick's Draw function for affine tranformations is to use the Math::Geometry::Planar module (cpan). You end up needing to convert any paths to polygons for the transformations. But I was able to rotate, mirror and mo...
by bigtable
2011-07-22T07:07:33-07:00
Forum: PerlMagick
Topic: draw & rotate or affine path
Replies: 7
Views: 28584

Re: draw & rotate or affine path

$detail->Draw(stroke=>"red", strokewidth=>1, affine=>[$a1,$a2,$a3,$a4,$a5,$a6], primitive=>'line', points=>"$x1,$y1 $x2,$y2"); produces the results in the example image linked above. i've also tried this with the actual values for the affine with same results. affine accepts this...
by bigtable
2011-07-22T05:50:24-07:00
Forum: PerlMagick
Topic: draw & rotate or affine path
Replies: 7
Views: 28584

Re: draw & rotate or affine path

RE: Paths, I'm very well versed with paths, thanks. I changed my test case to a line for simplicity. Re: array values, OK, I'll try other methods to populate the the array but you can see it accepts the input and rotates it ... sending it an actual array does nothing and I have not tried an array of...
by bigtable
2011-07-21T14:20:57-07:00
Forum: PerlMagick
Topic: draw & rotate or affine path
Replies: 7
Views: 28584

Re: draw & rotate or affine path

Thanks for your reply -- after some further testing I found the problem isn't with ImageMagick, it's with my stupid assumption of how it should work. :) Rotate works as advertised. After realizing that, I adapted your affine_distort program but my results aren't quite right. I have a line from 300,1...
by bigtable
2011-07-20T09:26:49-07:00
Forum: PerlMagick
Topic: draw & rotate or affine path
Replies: 7
Views: 28584

draw & rotate or affine path

Hello, I'm having some trouble with Draw() with rotate or affine. I'm attempting to add a path to the end of line and rotate the path according to the angle of the said line: PerlMagick ImageMagick 6.2.8 10/20/10 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html $detail->Draw(stroke=>"red&qu...
by bigtable
2011-01-24T16:39:18-07:00
Forum: Users
Topic: Comparing images to determine camera movement
Replies: 5
Views: 12335

Re: Comparing images to determine camera movement

The best match score and location will be returned by the compare function. But you can also use the returned match score image to seek the max value. In both cases, the location will be the offset of the upper left corner of the smaller image with respect to the upper left corner of the larger ima...
by bigtable
2011-01-24T15:56:41-07:00
Forum: Users
Topic: Comparing images to determine camera movement
Replies: 5
Views: 12335

Re: Comparing images to determine camera movement

Make a small image of something complex in the middle of the first frame, then look for that image in the next frame. I see what you're saying. In the case of automating that approach I won't know what is interesting. What if I were to take a crop of the center of the image and compare to the next?...
by bigtable
2011-01-23T16:59:39-07:00
Forum: Users
Topic: Comparing images to determine camera movement
Replies: 5
Views: 12335

Comparing images to determine camera movement

One for the experts: I'm trying to think of a way to analyze video and compose a single image, stitching the differences between every X frames together. For example, a camera is panning from left to right. I want to build a new stand alone image using frames from the video. The problem is, I do not...
by bigtable
2008-12-30T19:50:21-07:00
Forum: Users
Topic: More effects.. Cutout filter and newprint.. how to?
Replies: 11
Views: 34686

Re: artistic filters

I'm not sure. I think Gimp and Photoshop has from special filters for creating news print like screens. In IM it would be an artistic filter, and I have not even started to explore all those options (it is a masive set). Sorry for posting to an old thread -- but what are IM artistic filters? Google...
by bigtable
2008-04-28T12:23:11-07:00
Forum: Users
Topic: Analyze image and fill match with neighboring color
Replies: 5
Views: 14355

Re: Analyze image and fill match with neighboring color

Use median filtering (or something like it, e.g. morphological operator), BUT create a mask first that separates the white pixels from the rest. Then composite the median filtered result with the unfiltered result using the mask, so that the non-white pixels are not filtered and the white pixels ar...
by bigtable
2008-04-28T10:47:58-07:00
Forum: Users
Topic: Analyze image and fill match with neighboring color
Replies: 5
Views: 14355

Analyze image and fill match with neighboring color

Looking for some ideas for the following: Analyze image pixel by pixel looking for white. If white pixel found, fill with neighboring color. I wrote a script that parses the text output from convert and accomplishes what I outlined above. However, as you might imagine, it is very slow to analyze a l...
by bigtable
2008-01-24T15:29:41-07:00
Forum: Users
Topic: Photoshop Cutout Filter Equivalent
Replies: 10
Views: 39554

Re: Photoshop Cutout Filter Equivalent

Bad form or not, I'll reply to my own email -- I answered my own questions.

Turns out that the -segment option is what I wanted.

I think I have a good workflow; off to read more about the CLI to see if I can combine some steps and speed things up.

Thank again!

Luke
by bigtable
2008-01-24T07:55:49-07:00
Forum: Users
Topic: Photoshop Cutout Filter Equivalent
Replies: 10
Views: 39554

Re: Photoshop Cutout Filter Equivalent

Anthony: thanks for the info -- I'm going to start a new thread per your suggestion and try to explain what the cutout filter does in IM proper terms. I think I'm close. Bonzo: if the process at http://vectormagic.stanford.edu/ was available to use with my own equipment it would be without a doubt p...
by bigtable
2008-01-23T22:45:01-07:00
Forum: Users
Topic: Photoshop Cutout Filter Equivalent
Replies: 10
Views: 39554

Re: Photoshop Cutout Filter Equivalent

Hello ~ I too am looking for some advice to replicate the photoshop cutout filter. I realize this thread is pretty old but I was hoping to luck out and get some helpful hints. I spent the last four hours or so having a go at a variety of techniques listed at http://imagemagick.org/Usage/ with not to...