Page 1 of 1
Threshold -evaluate-sequence
Posted: 2018-06-10T07:46:29-07:00
by QuantumBoy
Hi,
It's pretty obvious what most of the
options do, but I can't work out what
actually calculates? How can you have a threshold of a sequence of images?
Thanks,
QB
Re: Threshold -evaluate-sequence
Posted: 2018-06-10T08:34:16-07:00
by snibgo
QuantumBoy wrote:How can you have a threshold of a sequence of images?
Quite easily, though I never have until today.
Suppose you have two images of the same size. The output of "-evaluate-sequence threshold" is each pixel of the first image thresholded by the corresponding pixel of the second image. If you have a third image, this is used to threshold the previous result. And so on.
For example:
Code: Select all
convert toes.png ( +clone -blur 0x3 ) -evaluate-sequence threshold evalseq_t.png
Re: Threshold -evaluate-sequence
Posted: 2018-06-10T10:22:07-07:00
by QuantumBoy
Great answer - thank you! So unlike 'mean', for example, 'threshold' will be different depending upon the order that you input images?
Re: Threshold -evaluate-sequence
Posted: 2018-06-10T10:38:57-07:00
by snibgo
Yes. For example, swapping the these particular inputs:
Code: Select all
convert toes.png ( +clone -blur 0x3 ) +swap -evaluate-sequence threshold evalseq_t2.png