Clear Filters
Clear Filters

How to boost the pixel difference of an image.

1 view (last 30 days)
How to find the pixel difference of an image and how to boost the intensity of it.

Answers (1)

Image Analyst
Image Analyst on 23 Aug 2012
I'm not sure what you mean by pixel difference. Do you want to define that? Maybe it is:
pixelDifference = max(grayImage(:)) - min(grayImage(:));
Or perhaps you mean
pixelDifference = conv2(grayImage, [-1 -1 -1;-1 8 -1;-1 -1 -1]/8);
Or you could try imadjust() to increase the contrast (expand the histogram).

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!