Search found 52 matches
- 2011-07-13T15:53:26-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
I disagree with the assertion "The same thing happens in convolutions, where the weighted averaging of values make the actual range of the values being used of little consequence, alpha weighting or otherwise." This was exactly the problem I reported at the beginning of this thread, when m...
- 2011-07-06T22:55:20-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
Let's hope for the best! Hopefully IM 7 will adopt the double precision representation, fix these problems, and make it more robust. Right now it makes me wonder if the errors in built in operations like convolution and such are not too detrimental and results reliable. Thanks for the ImageJ tip. Be...
- 2011-07-06T15:47:58-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
Thanks for the tip. Unfortunately this is a cumbersome solution and probably not right when using high order polynomials (my primary motivation when I started this thread) specially when the polynomial order is only known at run time. Also, for numbers larger than 15 all gets mapped either to 255 (s...
- 2011-07-06T01:17:16-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
Unfortunately it is the [0.0, 1.0] representation of color/intensity values that is troublesome. It is a smart decision to adopt a canonical representation, to have a uniform way to seamlessly handle all possible different quantizations, but it seems that has its drawbacks as it was shown by the mul...
- 2011-07-03T00:18:51-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
I don't know the internals of IM but wouldn't using double and, if needed, quad precision floating point numbers to perform the operations be sufficient? Only after the operations are done results would be mapped to whatever quantization is necessary to hold the numbers. No need for normalization he...
- 2011-07-02T17:40:42-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Re: Accuracy problems with -evaluate, -fx, -function
By the way, for completeness, the platform I ran the tests above is Linux Ubuntu 11.04 natty and IMagick 6.6.3-8 (6.6.2-6 2011-03-16 gives the same problem) Linux XXX 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Version: ImageMagick 6.6.3-8 2010-08-21 Q...
- 2011-07-02T16:22:10-07:00
- Forum: Users
- Topic: Accuracy problems with -evaluate, -fx, -function
- Replies: 23
- Views: 36069
Accuracy problems with -evaluate, -fx, -function
Calling convert mock.pgm -depth 16 -evaluate pow 2 mock-square.pgm to compute the square value of each pixel in the input image mock.pgm is producing odd results, i.e., the resulting numbers are not actually the square values and they are off by quite a margin of error. I made sure square values of ...
- 2010-12-06T15:34:33-07:00
- Forum: Developers
- Topic: morphology, area open and close
- Replies: 7
- Views: 20472
Re: morphology, area open and close
Here is the classical reference to the area opening and closing topic: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.125.6317&rep=rep1&type=pdf The idea is more or less the following (area closing for binary images): find the connected components in the image and paint with backgr...
- 2010-12-06T14:24:14-07:00
- Forum: Users
- Topic: thinning, skeleton:1 (bug ?)
- Replies: 2
- Views: 7195
Re: thinning, skeleton:1 (bug ?)
Thanks for the detailed answer and information. I now know that using multiple kernels in a single call to thinning is detrimental to speed. I will make changes accordingly. I will try the debugging you suggested to see what is happing under the hood. I am satisfied with Skeleton:2 and will continue...
- 2010-12-03T12:52:17-07:00
- Forum: Developers
- Topic: morphology, area open and close
- Replies: 7
- Views: 20472
Re: morphology, area open and close
Thanks for the link and for documenting the morphology suite. I have been using it extensively and it has been very very useful. Area opening and closing are different from opening and closing with a structured element (kernel) as they are not shape related but simply area related (sometimes called ...
- 2010-12-03T03:43:37-07:00
- Forum: Developers
- Topic: morphology, area open and close
- Replies: 7
- Views: 20472
morphology, area open and close
Is there any equivalent of area opening and area closing in IM ? These are operators that can remove and fill binary regions having at least a given number of pixels (area size). They are very useful to remove undesired tiny spots before e.g. a thinning operation. They are shape independent so defin...
- 2010-12-03T02:40:06-07:00
- Forum: Users
- Topic: thinning, skeleton:1 (bug ?)
- Replies: 2
- Views: 7195
thinning, skeleton:1 (bug ?)
I have found differences in results when performing the following thinning operations on a B&W image: convert img.pgm -morphology Thinning:-1 'Skeleton:1;Corners' thin.pgm convert thin.pgm -morphology Thinning:-1 'LineEnds:-1;Peaks:1.5' -depth 1 result_1.pgm and combining both thinnings in a sin...
- 2010-08-22T23:17:44-07:00
- Forum: Users
- Topic: How to handle tiff with 2 channels only
- Replies: 5
- Views: 11724
Re: How to handle tiff with 2 channels only
Thanks for replying and willingness to take a look at the problem and apologies for not posting an example image sooner.
You can find the image.tif file mentioned in my previous post here: http://www.imagenoir.com/magick/
Hopefully there is a way IM can handle such images.
You can find the image.tif file mentioned in my previous post here: http://www.imagenoir.com/magick/
Hopefully there is a way IM can handle such images.
- 2010-08-13T03:22:54-07:00
- Forum: Users
- Topic: How to handle tiff with 2 channels only
- Replies: 5
- Views: 11724
How to handle tiff with 2 channels only
I would like to use IM to work on some tiff images that were extracted from a multipage microscopy file (.lsm, Zeiss format, tiff based). The problem I think I am having is that there are 2 channels only on the tiff files (see below) and IM can't quite work with that. For example, % convert -separat...
- 2010-03-16T15:14:44-07:00
- Forum: Users
- Topic: convex hull of connected components
- Replies: 2
- Views: 6277
convex hull of connected components
Does IM compute convex hull of binary images ? I have many binary images with a single (connected component) object in each image. Is there a way to use IM to determine the convex hull of the foreground object in a binary image and then paint its interior and produce another image with same size as...