Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-05-26
http://www.imagemagick.org
xubuntu 16.04
If I reword my question.
I have 3 sRGB images and the min and max of the image set to combine using -poly. The idea is to reject outliers and reduce noise in the image stack.
I am unsure of the correct syntax... I have looked around for examples but found nothing that helped and I am not following the poly description and usage.
This is the expression I used, as posted. And as you mention 'w' is not valid.
Code: Select all
convert 0.tif 1.tif 2.tif max.tiff min.tiff -poly '1,1,1,-1,-1' nr.tiff
This produced the same result as above with 'w' and without error... a bit confusing
Code: Select all
convert 0.tif 1.tif 2.tif min.tif max.tif -function Polynomial "w,1,w,1,w,1,-w,1,-w,1" nr.tiff
input images 0.tif 1.tif 2.tif
Code: Select all
Colorspace: sRGB
Depth: 16-bit
Channel depth:
red: 16-bit
green: 16-bit
blue: 16-bit
alpha: 1-bit
Channel statistics:
Pixels: 11793570
Red:
min: 0 (0)
max: 65535 (1)
mean: 7989.53 (0.121912)
standard deviation: 3511.34 (0.0535796)
kurtosis: 173.845
skewness: 11.908
Green:
min: 0 (0)
max: 65535 (1)
mean: 6222.62 (0.0949511)
standard deviation: 3359.31 (0.0512597)
kurtosis: 220.112
skewness: 13.7577
Blue:
min: 0 (0)
max: 65535 (1)
mean: 4883.85 (0.0745228)
standard deviation: 3348.95 (0.0511017)
kurtosis: 222.072
skewness: 13.6168
Alpha:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Output is grayscale
Code: Select all
Image: nr.tiff
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 4215x2798+0+0
Resolution: 150x150
Print size: 28.1x18.6533
Units: PixelsPerInch
Type: Bilevel
Endianess: LSB
Colorspace: Gray
Depth: 16/1-bit
Channel depth:
gray: 1-bit
alpha: 1-bit
Channel statistics:
Pixels: 11793570
Gray:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: -nan (-nan)
kurtosis: -nan
skewness: -nan
Alpha:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Colors: 1
Histogram:
11793570: (65535,65535,65535,65535) #FFFFFFFFFFFF graya(255,1)
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu