Giter Site home page Giter Site logo

zyfccc / representing-camera-response-function Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24.68 MB

Code for the paper "Representing Camera Response Function by a Single Latent Variable and Fully Connected Neural Network"

License: Apache License 2.0

Python 100.00%
autoencoder camera camera-calibration camera-response-function demo distribution-learning neural-architecture-search neural-network

representing-camera-response-function's Introduction

Representing Camera Response Function by a Single Latent Variable and Fully Connected Neural Network

Code for the paper "Representing Camera Response Function by a Single Latent Variable and Fully Connected Neural Network". If you use this code or the dataset, please cite our paper:

@article{Zhao2022,
    author = {Zhao, Yunfeng and Ferguson, Stuart and Zhou, Huiyu and Rafferty, Karen},
    doi = {10.1007/s11760-022-02351-8},
    journal = {Signal, Image and Video Processing},
    month = {Sep},
    title = {{Representing Camera Response Function by a Single Latent Variable and Fully Connected Neural Network}},
    year = {2022}
}

This repo provides an example program of the proposed model in the paper, a pre-trained camera response function (CRF) representation model, and the image dataset used.

File structure

- dataset/modified_Middlebury/    # dataset
    - CanonEOS1DsMarkII/
       | wb1i1e1-jpg.png    # jpg image
       | wb1i1e1-raw.png    # corresponding raw image
       ...
       | wb1i2e3-jpg.png
       | wb1i2e3-raw.png
       ...
    - CanonPowerShotG9/
       | wb1i1e1-jpg.png    # for calibration
       | wb1i1e1-raw.png
       ...
       | wb1i2e1-jpg.png    # for testing
       | wb1i2e1-raw.png
       ...
    ...
    | tags.json    # label information
- libs/     # other code
- model/    # pre-trained model
| example_Middlebury_calibration.py    # demonstration program

Code

Requirements

  • Tensorflow 1.14.0
  • opencv-python 4.4.0

Demonstration

Run python example_Middlebury_calibration.py to calibrate and visualise the result.

The example_Middlebury_calibration.py is the demonstration program that calibrates CRF of each camera in the modified Middlebury dataset using the measured and true colour intensities of a Macbeth colour chart and compares the CRF-corrected intensities of the JPG images with the true values obtained from their raw images.

During calibration of each camera, the program calculates the optimal parameter of the proposed model and reconstructs the CRF by the calculated model parameter and proposed model.

Result visualisation

Camera calibration results visualised:

Representing-crf-fig1

Model

In the model folder is a pre-trained tensorflow model using the method proposed in the paper.

Dataset

The dataset folder contains the image dataset for camera calibration and result demonstration.

A list of the cameras selected in the modified Middlebury dataset:

  • Canon EOS-1Ds Mark II
  • Canon PowerShot G9
  • Canon PowerShot G10
  • Canon PowerShot S50
  • Canon PowerShot S60
  • Casio EX-Z55
  • Nikon D70
  • Nikon D200
  • Olympus E10
  • Olympus E500
  • Panasonic DMC-LX3
  • Pentax K10D
  • Sony DSLR-A100
  • Sony DSLR-A300

tags.json file provides label information that indicates regions of colour patches in the images.

representing-camera-response-function's People

Contributors

zyfccc avatar

Watchers

 avatar

representing-camera-response-function's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.