A Customized Camera Imaging Pipeline for Dermatological Imaging
Hakki Can Karaimer1 Iman Khodadad2 Farnoud Kazemzadeh2 Michael S. Brown1
1York University, Toronto 2 Elucid Labs
1
Dermatological Imaging ISIC Skin Image Analysis Workshop @ CVPR 2019 - - PowerPoint PPT Presentation
A Customized Camera Imaging Pipeline for Dermatological Imaging ISIC Skin Image Analysis Workshop @ CVPR 2019 Hakki Can Karaimer 1 Iman Khodadad 2 Farnoud Kazemzadeh 2 Michael S. Brown 1 1 York University, Toronto 2 Elucid Labs 1 Talk's topic A
1York University, Toronto 2 Elucid Labs
1
ISIC Skin Image Analysis Workshop @ CVPR 2019
2
Schematic drawing of the device Prototype Machine vision camera Macro lens
LED light ring Broadband visible light and selected non-visible spectral bands
Device housing
19mm
ISIC Skin Image Analysis Workshop @ CVPR 2019
3
Consumer camera
Output from machine vision camera's API Enhanced RGB image using a spectral band
ISIC Skin Image Analysis Workshop @ CVPR 2019
4
ISIC Skin Image Analysis Workshop @ CVPR 2019
5
2- Black light subtraction, linearization
[Values or 1D LUT]
1- Reading raw Image 3- Lens correction
[2D Array(s)]
4- Demosaicing
[Func]
7- Hue/Sat map
[3D LUT]
8- Exposure curve
[EV value or 1D LUT]
9- Color mani- pulation [3D LUT] 10- Tone curve application [1D LUT] 11- Final color-space conversion [Mat] 12- Gamma curve application [1D LUT] 5- Noise reduction
[Func]
# # # # # # # # #
1 2 3 4 5 6 8 9 10 11 7 12
f f
Gamma applied for visualization
Intermediate images for each stage Sensor Output
6- White-balancing & color space transform to CIE XYZ [MATs]
# # # # # # # # # # # #
ISIC Skin Image Analysis Workshop @ CVPR 2019
6
2- Black light subtraction, linearization
[Values or 1D LUT]
1- Reading raw Image 3- Lens correction
[2D Array(s)]
4- Demosaicing
[Func]
7- Hue/Sat map
[3D LUT]
8- Exposure curve
[EV value or 1D LUT]
9- Color mani- pulation [3D LUT] 10- Tone curve application [1D LUT] 11- Final color-space conversion [Mat] 12- Gamma curve application [1D LUT] 5- Noise reduction
[Func]
# # # # # # # # #
1 2 3 4 5 6 8 9 10 11 7 12
f f
Gamma applied for visualization
Intermediate images for each stage Sensor User
Color space transform Photofinishing
6- White-balancing & color space transform to CIE XYZ [MATs]
# # # # # # # # # # # #
ISIC Skin Image Analysis Workshop @ CVPR 2019
7
Typical pipeline for machine vision cameras
RAW Image RAW Image Demosaic Demosaic
Black level offset, normalization
Gamma Gamma Pre- processing Pre- processing
5 3 2 1
White- balance White- balance
4 (Optional)
Output Output
(Optional) 6
ISIC Skin Image Analysis Workshop @ CVPR 2019
7
Typical pipeline for machine vision cameras
RAW Image RAW Image Demosaic Demosaic
Black level offset, normalization
Gamma Gamma Pre- processing Pre- processing
5 3 2 1
White- balance White- balance
4 (Optional)
Output Output
(Optional)
Typical pipeline for consumer cameras
RAW image RAW image Noise reduction Noise reduction Color transform Color transform
Black level offset, normalization
White- Balance White- Balance JPEG
compression
JPEG
compression
Photo finishing Photo finishing
Tone-mapping, sRGB gamma, 3D color LUT
Pre- processing Pre- processing
1 2
Demosaic Demosaic
4 5 6 7 8 9
Flat-field correction Flat-field correction
3 6
ISIC Skin Image Analysis Workshop @ CVPR 2019
8
7- Tone curve 6- Photo-finishing 3D LUT (OPTIONAL) R B G 2- Black light subtraction, linearization 1- Sensor's raw image 4- Lens correction [2D Array] 5- Color space transform (3x3, or 3x11)
# # # # # # # # #
⋅⋅⋅ ⋅⋅⋅
R G R G R G B G B G R G R G R G B G B G R G R G R
3- Demosaicing
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
216 Black level 1.0 0.0
Classification module
R G R G R G B G B G R G R G R G B G B G R G R G R
2- Black light subtraction, linearization 1- Sensor's raw image
⋅⋅⋅ ⋅⋅⋅
216 Black level 1.0 0.0
Pipeline for visible images Pipeline for non-visible images Visualization/ live preview
Enhanced non-spectral visualization Image fusion
Show Real Image
Colorimetric linear-sRGB
Photo-finished sRGB output
Enhanced sRGB image
4- Lens correction 3- Selection on Bayer pattern
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅
1 00 1
ISIC Skin Image Analysis Workshop @ CVPR 2019
9
LED 1 LED 2 LED 3 LED 4 LED 5 LED 6 LED 7 LED 8 LED 9
ISIC Skin Image Analysis Workshop @ CVPR 2019
10
2- Black light subtraction, linearization 1- Sensor's raw image 4- Lens correction [2D Array] 5- Color space transform (3x3, or 3x11)
# # # # # # # # #
⋅⋅⋅ ⋅⋅⋅
R G R G R G B G B G R G R G R G B G B G R G R G R
3- Demosaicing
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
216 Black level 1.0 0.0
Classification module
Colorimetric XYZ
ISIC Skin Image Analysis Workshop @ CVPR 2019
11
Mean angular error: 2.66° Mean angular error: 2.80° Mean angular error: 22.23° Mean angular error: 7.44° Visualization of patches Off-the-shelf machine vision camera WB CST3×3 CST3×11 Mean angular error: 2.70° Mean angular error: 2.75° Mean angular error: 22.04° Mean angular error: 9.97°
CC SC
°
CC: Macbeth color checker chart SC: Skin colors from the Munsell Book of Color
ISIC Skin Image Analysis Workshop @ CVPR 2019
12
7- Tone curve 6- Photo-finishing 3D LUT (OPTIONAL) R B G 2- Black light subtraction, linearization 1- Sensor's raw image 4- Lens correction [2D Array] 5- Color space transform (3x3, or 3x11)
# # # # # # # # #
⋅⋅⋅ ⋅⋅⋅
R G R G R G B G B G R G R G R G B G B G R G R G R
3- Demosaicing
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
216 Black level 1.0 0.0
1 00 1
ISIC Skin Image Analysis Workshop @ CVPR 2019
13
Raw-RGB + gamma Linear-sRGB (B) Photo finished w/ Adobe tone-curve (B) Photo finished w/ Nikon's Vivid mode (B) Photo finished w/ Canon's Portrait mode (B) Photo finished w/ Olympus's Natural mode
ISIC Skin Image Analysis Workshop @ CVPR 2019
14
7- Tone curve 6- Photo-finishing 3D LUT (OPTIONAL) R B G 2- Black light subtraction, linearization 1- Sensor's raw image 4- Lens correction [2D Array] 5- Color space transform (3x3, or 3x11)
# # # # # # # # #
⋅⋅⋅ ⋅⋅⋅
R G R G R G B G B G R G R G R G B G B G R G R G R
3- Demosaicing
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
216 Black level 1.0 0.0
Classification module
R G R G R G B G B G R G R G R G B G B G R G R G R
2- Black light subtraction, linearization 1- Sensor's raw image
⋅⋅⋅ ⋅⋅⋅
216 Black level 1.0 0.0
Pipeline for visible images Pipeline for non-visible images Visualization/ live preview
Enhanced non-spectral visualization
Show Real Image
Colorimetric linear-sRGB
Photo-finished sRGB output
Enhanced sRGB image
4- Lens correction 3- Selection on Bayer pattern
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅
1 00 1
ISIC Skin Image Analysis Workshop @ CVPR 2019
14
7- Tone curve 6- Photo-finishing 3D LUT (OPTIONAL) R B G 2- Black light subtraction, linearization 1- Sensor's raw image 4- Lens correction [2D Array] 5- Color space transform (3x3, or 3x11)
# # # # # # # # #
⋅⋅⋅ ⋅⋅⋅
R G R G R G B G B G R G R G R G B G B G R G R G R
3- Demosaicing
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
216 Black level 1.0 0.0
Classification module
R G R G R G B G B G R G R G R G B G B G R G R G R
2- Black light subtraction, linearization 1- Sensor's raw image
⋅⋅⋅ ⋅⋅⋅
216 Black level 1.0 0.0
Pipeline for visible images Pipeline for non-visible images Visualization/ live preview
Enhanced non-spectral visualization
Show Real Image
Colorimetric linear-sRGB
Photo-finished sRGB output
Enhanced sRGB image
4- Lens correction 3- Selection on Bayer pattern
R R R R R R B G B G R G R G R R B G B G R G R G R G G G G G G B G B G G G R G R G B G B G G G R G R B B B B B B B B B B B B B B B B B B B B B B B B B
⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅ ⋅⋅⋅
1 00 1
ISIC Skin Image Analysis Workshop @ CVPR 2019
15
Band 1 Band 2 Band 3 Band 4 Band 5 Visible image Band 6 Band 7 Band 8
ISIC Skin Image Analysis Workshop @ CVPR 2019
[1] Clement Fredembach, Nathalie Barbuscia, and Sabine Süsstrunk. Combining Visible and Near-Infrared Images for Realistic Skin Smoothing. In Color and Imaging Conference, 2009. [2] Mathieu Aubry, Sylvain Paris, Samuel W. Hasinoff, Jan Kautz, and Fredo Durand. Fast Local Laplacian Filters: Theory and Applications. In SIGGRAPH, 2014. [3] Michel Misiti, Yves Misiti, Georges Oppenheim, and Jean-Michel Poggi. Wavelets and Their Applications. Newport Beach, CA: Wiley-ISTE.
16
Photo-finished image A narrow band spectral image The result of the fusion
ISIC Skin Image Analysis Workshop @ CVPR 2019
Modified bilateral filter method [1] Wavelet-based image fusion [3] Band 1 Band 2 Band 3 Band 4 Band 5 Visible image Band 6 Band 7 Band 8 Modified local Laplacian filter method [2]
ISIC Skin Image Analysis Workshop @ CVPR 2019
18
ISIC Skin Image Analysis Workshop @ CVPR 2019
19
ISIC Skin Image Analysis Workshop @ CVPR 2019
20
ISIC Skin Image Analysis Workshop @ CVPR 2019
21