Skip to content
/ CPDNet Public
forked from wsj890411/CPDNet

Convolutional demosaicing network for joint chromatic and polarimetric imagery

Notifications You must be signed in to change notification settings

donyakh/CPDNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Convolutional demosaicing network for joint chromatic and polarimetric imagery

Python 3.5 TensorFlow 1.14 CUDA 10.0 License CC BY-NC

Our paper is accepted by Optics Letters 2019.

Teaser

Picture: Architecture of the proposed CPDNet.

MPI Results

Picture: Visual results.

This repository contains the official Tensorflow implementation of the following paper:

Convolutional Demosaicing Network for Joint Chromatic and Polarimetric Imagery
Sijia Wen, Yinqiang Zheng, Feng Lu, Qinping Zhao
https://www.osapublishing.org/ol/abstract.cfm?uri=ol-44-22-5646

Abstract: Due to the latest progress in image sensor manufacturing technology, the emergence of a sensor equipped with an RGGB Bayer filter and a directional polarizing filter has brought significant advantages to computer vision tasks where RGB and polarization information is required. In this regard, joint chromatic and polarimetric image demosaicing is indispensable. However, as a new type of array pattern, there is no dedicated method for this challenging task. In this Letter, we collect, to the best of our knowledge, the first chromatic-polarization dataset and propose a chromatic-polarization demosaicing network (CPDNet) to address this joint chromatic and polarimetric image demosaicing issue. The proposed CPDNet is composed of the residual block and the multi-task structure with the costumed loss function. The experimental results show that our proposed methods are capable of faithfully recovering full 12-channel chromatic and polarimetric information for each pixel from a single mosaic image in terms of quantitative measures and visual quality.

Resources

Material related to our paper is available via the following links:

System requirements

  • 64-bit Python 3.5 installation.
  • TensowFlow 1.14.0 or newer with GPU support.
  • One or more high-end NVIDIA GPUs with at least 8GB of DRAM.

Dataset

Download (Dropbox): https://www.dropbox.com/s/4t3hw6i9tb0nvh2/OL.zip?dl=0

Download (BaiduPan): https://pan.baidu.com/s/16X_TXHkoMsoWOw33kDShcQ Code:o56q

The downloaded and unzipped polarized color images should be organized as follows:

data_root
    |-- Train
        |-- train_dataset
            |-- image-ID
            	|-- gt_0
            		|-- image-ID.png
                |-- gt_45
            		|-- image-ID.png
            	|-- gt_90
            		|-- image-ID.png
            	|-- gt_135
            		|-- image-ID.png
            	|-- net_input
            		|-- image-ID.png
            ...
    |-- Test
        |-- test_dataset
            |-- image-ID
            	|-- gt_0
            		|-- image-ID.png
                |-- gt_45
            		|-- image-ID.png
            	|-- gt_90
            		|-- image-ID.png
            	|-- gt_135
            		|-- image-ID.png
            	|-- net_input
            		|-- image-ID.png
            ...
         |-- polarized_dataset
         |-- real_captured

Playing with pre-trained networks and training

Test

  1. The pretrained model is provided in ./OL_CPDNET_mse_ssim_gra_stoke/checkpoint/OL_final/
  2. One can modify the configuration in ./OL_CPDNET_mse_ssim_gra_stoke/main.py

Then then results will be generated in the ./OL_CPDNET_mse_ssim_gra_stoke/results dir.

Train

  1. Download the dataset to your <your_dataset_root>.
  2. Split the dataset and organize them in OL_CPDNET_DATA
  3. One can modify the configuration in ./OL_CPDNET_mse_ssim_gra_stoke/main.py

Citation

If you find this work or code is helpful in your research, please cite:

@article{wen2019convolutional,
  title={Convolutional demosaicing network for joint chromatic and polarimetric imagery},
  author={Wen, Sijia and Zheng, Yinqiang and Lu, Feng and Zhao, Qinping},
  journal={Optics letters},
  volume={44},
  number={22},
  pages={5646--5649},
  year={2019},
  publisher={Optical Society of America}
}

About

Convolutional demosaicing network for joint chromatic and polarimetric imagery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%