Hot pixel removal

  • Median filter test on the Cd spectrum image at 1.50mm with size=4:
    Cd_1.50_median_filter_size4.png
  • Top images are pre filter, bottom are post filter.
  • Spectrums are the number of photoelectrons as a function of the pixel position
  • Adjusting the size to 1 yields no removal, size = 2 gives mediocre removal and increasing the size past 4 gives no further improvement.

  • Median blur test on the Cd spectrum image at 1.50mm with ksize=3:
    Cd_1.50_medianBlur_size3.png
  • Adjusting the ksize to 1 yields no removal and increasing the ksize past 3 gives no further improvement.

  • Both scipy.ndimage.filters.median_filter and cv2.medianBlur remove hot pixels from this test image with mostly the same result.

  • Median filter test on the 20s dark frame with median_filter size 4:
    DarkFrame_20s_1_median_filter_size4.png

  • Median blur test on the 20s dark frame with ksize=3:
    DarkFrame_20s_1_medianBlur_size3.png

  • Reducing the size and ksize below 4 and 3 respectively yields minimal noise reduction.
  • If removing the hot pixels from the spectrum images works, is processing the dark frames a requirement?

  • Median filter test on the Cd spectrum image at 6.50mm with size 4:
    Cd_6.50_median_filter_size4.png

  • Median blur test on the Cd spectrum image at 6.50mm with ksize=3:
    Cd_6.50_medianBlur_size3.png

  • Testing code on a much brighter section of the spectrum (6.50mm) also shows hot pixel reduction

-- WillBurrows - 13 Oct 2016

Smoothing curves

  • This figure shows a plot of the number of photoelectrons as a function of pixel position, the plots on the top are with the original values, the plots on the bottom are where the average is taken for the 10 adjacent values.
  • Plot for Cd calibration for grating of 0.00mm:
    Cad_plt_0.00.png

  • Calib_cd_0.00.txt: All of the local peaks and its location in the x axis for cad_plt_0.00 plot

  • Calib_cd_6.50.txt: All of the local peaks and its location in the x axis for cad_plt_6.50 plot

  • Calib_cd_10.0.txt: All of the local peaks and its location in the x axis for cad_plt_10.00 plot

  • Plot for clad for grating of 10mm:
    Cad_plot_10.00.png

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Cad_plot_10.00.png r1 manage 75.0 K 14 Oct 2016 - 13:46 JamesAngthopo Plot for clad for grating of 10mm
PNGpng Cad_plt_0.00.png r1 manage 75.8 K 14 Oct 2016 - 13:28 JamesAngthopo Plot for Cd calibration for grating of 0.00mm
PNGpng Cad_plt_6.50.png r1 manage 53.6 K 14 Oct 2016 - 13:38 JamesAngthopo Plot for Cd calibration for grating of 6.50mm
Texttxt Calib_cd_0.00.txt r1 manage 3.1 K 13 Oct 2016 - 22:48 JamesAngthopo All of the local peaks for cad_plt_0.00 plot
Texttxt Calib_cd_10.0.txt r1 manage 4.3 K 13 Oct 2016 - 22:50 JamesAngthopo All of the local peaks for cad_plt_10.00 plot
Texttxt Calib_cd_6.50.txt r1 manage 3.1 K 13 Oct 2016 - 22:49 JamesAngthopo All of the local peaks for cad_plt_6.50 plot
PNGpng Cd_1.50_medianBlur_size3.png r1 manage 110.2 K 13 Oct 2016 - 17:49 WilliamBurrows Median blur test on the Cd spectrum image at 1.50mm with ksize=3
PNGpng Cd_1.50_median_filter_size4.png r1 manage 106.6 K 13 Oct 2016 - 17:48 WilliamBurrows Median filter test on the Cd spectrum image at 1.50mm with size=4
PNGpng Cd_6.50_medianBlur_size3.png r1 manage 61.3 K 13 Oct 2016 - 18:06 WilliamBurrows Median blur test on the Cd spectrum image at 6.50mm with ksize=3
PNGpng Cd_6.50_median_filter_size4.png r1 manage 61.1 K 13 Oct 2016 - 18:05 WilliamBurrows Median filter test on the Cd spectrum image at 6.50mm with median_filter size 4
PNGpng DarkFrame_20s_1_medianBlur_size3.png r1 manage 126.3 K 13 Oct 2016 - 17:52 WilliamBurrows Median blur test on the 20s dark frame with ksize=3
PNGpng DarkFrame_20s_1_median_filter_size4.png r1 manage 127.8 K 13 Oct 2016 - 17:52 WilliamBurrows Median filter test on the 20s Dark frame with median_filter size 4
Texttxt hot_pixel.py.txt r1 manage 1.4 K 13 Oct 2016 - 18:12 WilliamBurrows Hot pixel removal test code - python - 20161013
Compressed Zip archivezip plot_figures.zip r1 manage 334.6 K 14 Oct 2016 - 14:07 WilliamBurrows James' plots
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r6 - 14 Oct 2016 - WilliamBurrows

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback