Hi reyalp,
Am confused by from reading the CHDK manual Bad pixel removal section "Use this option to remove defective pixels directly while taking an image; this affects also the JPG image, not only the RAW image. This function removes bad pixels ("hot" / "defective" pixels) which are not known by the Canon firmware, i.e. pixels that became defective during the camera lifetime.
Once you have generated a list with all the "bad" pixels for your camera, CHDK can remove them automatically with the [Average] or [RAWConv] option selected, CHDK looks for the file badpixel in the /CHDK folder; this is a plain text file with x/y coordinates of the bad pixels in the raw image.
with the [Average] setting CHDK calculates the color for the bad pixel based on its four neighbour pixels with a simple average calculation; bad neighbour pixels will be ignored in this calculation.
the [RawConv] setting means: let an external raw converter software remove the bad pixels later in the workflow. With this setting CHDK just sets the bad pixel to the value 0 (zero), without any other calculation or modification. Most RAW-capable apps will detect this and apply their own algorithms.
To create this badpixel file you need to capture a "dark frame" by shooting an image with the lens completely capped. For shutter speeds longer than 1 to 10 seconds, it's wise to keep a collection of dark-frames on hand for each exposure length that you will be using in the future, as more warm and hot-pixels appear with extended shutter speeds.
To create a list of the bad / defective pixels you can use the show_bad tool from here >
http://ewavr.nm.ru/chdk/show_bad.zip (direct download).
→ Read more about this program & how to use it here: Hot/bad pixel removal "
http://chdk.wikia.com/wiki/CHDK_User_ManualTried the link for show_bad tool but only got 404 error message.
Then did search and found "Talk:Badpixel removal badpixel vs badpixelcopy4.exe"
http://chdk.wikia.com/wiki/Talk:Badpixel_removal but too technical for me.
Hope you or someone using CHDK can give an explanation.
Thanks again for your help!
Ken