How to find the bad pixels map and replace ?

조회 수: 22 (최근 30일)
Muhammad Ghani
Muhammad Ghani 2023년 1월 21일
답변: Image Analyst 2023년 1월 21일
Hello, I’ve a camera and I am trying to calibrate a camera and want to create a bad pixel map (dead pixel, hot pixel). I have a flat uniform gray scale image with intensity from 0 to 4095. I can see that pixels whose intensity values are lower than mean values by 600 are dead pixels and pixels whose values are greater than 600 as of the mean value are hot pixels. These are essentially the outliers. I want to first store the indices of those pixels and then replace with nearest non defected pixel value. I truly appreciate your help in advance.

답변 (1개)

Image Analyst
Image Analyst 2023년 1월 21일
Nearly always, camera sensors have a bad pixel map built into them and correct the dead pixels before they ever leave the camera. So you never see them.
Nonetheless, dead pixels could be considered salt and pepper noise and you can use a modified median filter. See attached demos.

Community Treasure Hunt

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

Start Hunting!

Translated by