Re: MIP- maximum intensity projection
Posted: 2010-03-05T17:30:36-07:00
agreed, -min and -max would be better even though +/-mip is clear to me too...
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=15711
magick wrote:Should that be -max or -max-intensity?
-evaluate max 100obs: i was expecting "-evaluate max 100" to do the same thing but it is not working: the histogram of the resulting image has many values < 100. what am i missing ?
exactly, and it is not working for me: "convert a.pgm -evaluate max 200 b.pgm" results in b.pgm having all pixel values of a.pgm. same with you ? i will open a new thread on this.fmw42 wrote:-evaluate max 100obs: i was expecting "-evaluate max 100" to do the same thing but it is not working: the histogram of the resulting image has many values < 100. what am i missing ?
operates on one image only and compares each pixel in that image to the gray level of 100 and takes the max(pixel,100)
However the -layers operator (and its shortcuts -flatten -mosaic) will compose a whole sequence of images down to one image using the current -compose setting. However you will also need to set an appropriate -background color for the starting image.magick wrote:Composite only accepts 2 or 3 images (image1, image2, mask). You can composite as many images as you want with the convert command by repeating the -compose operator.
It is not exactly the same, but what would be most useful would be a multi-image weighted sum. That would be somewhat like -average, but the user could supply wts and have the images added together by the weights. Perhaps Anthony's new kernel code used for -morphology could be used to supply the weights, since there are an arbitrary (even or odd number of them) in a 1D-like series. This would allow me to speed up some scripts that rely upon -fx with multiple input images. Its utility comes from the fact that without it, if you have some images that need negative wts, they can get clipped in doing them in pairs. It is not urgent however. Just thought I would suggest that here for future consideration as an enhancement.Anthony wrote:Such a operator allows the easier addition of new methods.