seeing as the first -compose is just after the first ")", try escaping braces inside the command with ^) and ^(
Edit:
but don't start lines with "^(", use at least a space in front of ^
Search found 90 matches
- 2012-04-22T07:21:07-07:00
- Forum: Users
- Topic: Problem using for loop to round edges
- Replies: 4
- Views: 12466
- 2011-05-20T08:02:07-07:00
- Forum: Users
- Topic: Remove Background Noise For OCR
- Replies: 6
- Views: 23580
Re: Remove Background Noise For OCR
You could generate two images, one specifically to recognize white-on-dark text and one to recognize dark-on-white text convert Cb3R5.png -normalize ( -clone 0 -blur 5 ) -compose minus -composite -normalize cbblack.png convert Cb3R5.png -normalize ( -clone 0 -blur 5 ) +swap -compose minus -composite ...
- 2011-05-18T14:02:54-07:00
- Forum: Users
- Topic: Cleaning up noise around text
- Replies: 19
- Views: 139726
Re: Cleaning up noise around text
It is a pretty nifty application for write masks. I had not known there were clip-masks in imagemagick before, they look like they could be useful for all sorts of things. one application would be a canny-style edge detector http://en.wikipedia.org/wiki/Canny_edge_detector something like convert ...
- 2011-05-16T08:12:07-07:00
- Forum: Users
- Topic: getting the edges of an image
- Replies: 30
- Views: 88276
Re: getting the edges of an image
The noise from sneg.png is mostly removed with convert sneg.png -morphology close diamond sneg_cleaned.png ( http://www.imagemagick.org/Usage/morphology/#basic for details ) however, depending on the original image there are probably better options to get the outline that do not produce that much ...
- 2011-05-16T06:43:07-07:00
- Forum: Users
- Topic: getting the edges of an image
- Replies: 30
- Views: 88276
Re: getting the edges of an image
http://img852.imageshack.us/img852/1784/sneg.png the above image has some blur and unwanted stuff. how should i clean up this image so that i can get only the outline of the image?? If that is the image you are starting with, you could use the conditional erode method used in this thread: http ...
- 2011-05-15T22:30:47-07:00
- Forum: Users
- Topic: [Solved] How to remove all color except 3, and resize canvas
- Replies: 7
- Views: 23943
Re: How to remove all color except 3 color, and resize Canva
Perhaps like this: - split into 3 images - trim right side of each image - extend right side of each image by x% - combine images, aligned to the left The more on the right the blob appears, the less will be trimmed, the more the image will be extended. So the original order is preserved, and the ...
- 2011-05-14T09:20:07-07:00
- Forum: Users
- Topic: getting the edges of an image
- Replies: 30
- Views: 88276
Re: getting the edges of an image
perhaps the output file is opened in another program, so convert cannot write to it? check the last-changed date of "christmas_tree_01_alpha_edge2n.png" to make sure convert actually writes to the file. Or delete the output file first, and rerun the command. also type convert -version what does it ...
- 2011-05-14T03:43:38-07:00
- Forum: Users
- Topic: getting the edges of an image
- Replies: 30
- Views: 88276
Re: getting the edges of an image
I cannot reproduce this problem. > convert christmas_tree_01.png -alpha extract -edge 2 -negate christmas_tree_01_alpha_edge2n.png works as expected on my system (Windows XP) >convert -version Version: ImageMagick 6.6.9-8 2011-05-04 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ...
- 2011-05-10T16:39:12-07:00
- Forum: Users
- Topic: Cleaning up noise around text
- Replies: 19
- Views: 139726
Re: Cleaning up noise around text
Due to the nature of the ringing noise, all black noise specks are separated by at least 1 pixel from the letters. One good approach to remove this noise would be to dilate the image so that at least one "seed" part of each letter remains, then erode these seeds while using the original image as a ...
- 2011-03-19T12:18:17-07:00
- Forum: Users
- Topic: subimage search with fourier (cross-correlate)
- Replies: 4
- Views: 18385
Re: subimage search with fourier (cross-correlate)
Thanks. I have been using that script in trying to get a working command line, but so far without success. I am not well versed in bash code. Since I am on windows, I have not actually executed it; my main goal currently is to get some understanding of what I am doing. As far as I can tell, I do not ...
- 2011-03-19T09:17:10-07:00
- Forum: Users
- Topic: subimage search with fourier (cross-correlate)
- Replies: 4
- Views: 18385
Re: subimage search with fourier (cross-correlate)
I did try the compare -subimage-search, but it seems a bit too slow at these sizes. Non-hdri imagemagick takes 25 minutes for the test-images, using nearly 100% of both cpu cores. I thought about ways to speed that up, by searching only part of the subimage fist, or first searching in a scaled-down ...
- 2011-03-19T07:00:20-07:00
- Forum: Users
- Topic: subimage search with fourier (cross-correlate)
- Replies: 4
- Views: 18385
subimage search with fourier (cross-correlate)
I am trying to figure out how to do subimage search with the fast fourier transform. I managed to compile imagemagick with HDRI and fft support. I tried various commands adapted from http://www.imagemagick.org/Usage/fourier/fft_math/#multiply and http://www.fmwconcepts.com/imagemagick/normcrosscorr ...
- 2011-03-15T22:44:16-07:00
- Forum: Users
- Topic: Transparent Background
- Replies: 5
- Views: 16871
Re: Transparent Background
I have a real time problem now. I want to take a picture of a semi-transparent object ( a piece of cloth). I am at liberty to change the background if any specific colored background can help me remove the background and get the transparent cloth piece only. Can that be done? check out this post ...
- 2011-03-15T19:27:36-07:00
- Forum: Users
- Topic: undo a composite -dissolve
- Replies: 23
- Views: 110041
Re: undo a composite -dissolve
Aside: Some thoughts about removing backgrounds What if we only have a single source image with a monochrome background? http://www.imagemagick.org/Usage/masking/match_navy.gif It is impossible to recover the original alpha channel from this image alone, because there are several possible overlays ...
- 2011-03-15T11:28:56-07:00
- Forum: Users
- Topic: How to crop heads/faces from a photo?
- Replies: 10
- Views: 34510
Re: How to crop heads/faces from a photo?
Cropping is limited to rectangular areas, since image files are by definition rectangular. You can however mask/make transparent any shape you want, see http://www.imagemagick.org/Usage/masking/#editing Automatically recognizing the boundaries of faces is very hard; for skin you might be able to do ...