# Is there a way to represent the image obtained by ImageDifference between 0 and 1?

I would like to use ImageDifference to express the change in motion between 0 and 1.

Dynamic[{data = CurrentImage[2], smart = ImageDifference[data[[1]], data[[2]]]}]


If there is no change, 0, Depending on the degree of change, I want to represent between 0 and 1.

Is there a way to represent the image obtained by ImageDifference between 0 and 1?

• Probably many ways e.g. you can sum up grayscaled image and normalize with respect to pixel count. But this question is not about Mathematica. – Kuba May 18 '17 at 6:31
• Good idea thank you. I wanted to know if there was a Mathematica function that would solve this problem easily. And I found a function called ImageMeasurements. – user21427 May 19 '17 at 22:44
• Are you looking for ImageAdjust? – Chip Hurst Jul 17 '17 at 15:48

Dynamic[data = CurrentImage[2];