Image sequence per-pixel percentile function?
Posted: 2017-06-30T01:34:13-07:00
Hi all,
I'd like to know if there is a script or set of commands I could run to output the equivalent of the following
convert -evaluate-sequence percentile=<1..99>
(percentile of course isn't a valid function, just using it here as descriptive for the desired processing). That is, to process a sequence of images where the output is an image where each pixel is the nth percentile value across the same pixel location across all images. e.g. percentile=50 would produce the same output as median
I find some interesting results from adding or subtracting max, min, median outputs to produce new derived images. Being able to specify percentile would add more flexibility and combinations. It may be a time consuming algorithm since it would in the most direct implementation require sorting pixel values for each location across all images.
Wanted to check if anyone has written a script for this already or has some suggestions for how to best implement it.
Thanks!
bpoo
I'd like to know if there is a script or set of commands I could run to output the equivalent of the following
convert -evaluate-sequence percentile=<1..99>
(percentile of course isn't a valid function, just using it here as descriptive for the desired processing). That is, to process a sequence of images where the output is an image where each pixel is the nth percentile value across the same pixel location across all images. e.g. percentile=50 would produce the same output as median
I find some interesting results from adding or subtracting max, min, median outputs to produce new derived images. Being able to specify percentile would add more flexibility and combinations. It may be a time consuming algorithm since it would in the most direct implementation require sorting pixel values for each location across all images.
Wanted to check if anyone has written a script for this already or has some suggestions for how to best implement it.
Thanks!
bpoo