GithubHelp home page GithubHelp logo

ashrotre / rbqi Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 20 KB

Full-reference objective quality index for reconstructed background images.

License: Other

CMake 2.61% C++ 97.39%
image-processing image-quality-assessment background-reconstruction objective-quality-metric perceptual-quality

rbqi's Introduction

BUILD DEPENDENCIES:

  1. CMake
  2. OpenCV 3.1
  3. OpenMP (Note: LLVM compiler does not support OpenMP)
  4. Boost

COMPILING:

The sources are tested in Ubuntu 16.04 (64-bit), Eclipse Platform Version 3.8.1 and MacOSX 10.10, Xcode version 7.2.1

Linux:
	1. Create build/ folder
	2. cd buid/
	3. cmake -G"Eclipse CDT4 - Unix Makefiles" ../RBQI/
	4. Open Eclipse 
	5. Import the project into the workspace (https://cmake.org/Wiki/Eclipse_CDT4_Generator)
	6. Build the project in eclipse
MacOS:
	1. Create build/ folder
	2. cd build/
	3. cmake -G Xcode ../RBQI/
	4. Open the project in Xcode
	5. Product->edit scheme->Options->check the custom working directory box and set the path to build/
(*Note: OpenMP is not supported in LLVM compiler and hence in Mac, the code does not use omp libraries and will be much slower than in Ubuntu.)

INPUT ARGUMENTS:

<binary> <1-to run for entire dataset, 0-for single image> <Level(default=3)> \
          <Neighborhood (default=16)> <beta_s(default=3.5)> beta_c<default=3.5)> \
          <Reference Image Path, only for single image> <Reconstructed Image Path, only for single image>

To run all images in the dataset:
	1. provide a csv file with the list of input images and corresponding references (examples: inputFiles.csv/ inputFiles_SBM.csv). 
	2. Output cvs to write the calculated RBQI corresponding to all images.

To run the entire dataset:
	calcRBQI 1 3 16 3.5 3.5
To run single reference-reconstructed image pair:
	calcRBQI 1 3 16 3.5 3.5 ../Input/Reference Background/Building.JPG ../Input/Reconstructed Background/Building/BkgEstimator.jpg

SOURCES:

main.cpp - main function. Accepts the input arguments and outputs calculated RBQI

calcDistortionMaps.cpp - calculates the distortion maps for both structure and color

ssim_CS_search.cpp - Performs the similarity search in the neighborhood of the pixel

findBlockType.cpp - This function finds the label for every pixel in an image using the technique in “Post-Processing for artifact reduction in JPEG-compressed images.”

findAJNCD.cpp - This function calculates the Just noticeable color difference for each pixel in the input image by considering the chroma and local luminance texture as proposed in paper: "Colour image compression based on the measure of just noticeable colour difference.”

calcDR.cpp - Pools the distortion for the foveated regions.

calcSimScore.cpp - Calculated the RBQI for the given reference-reconstructed image pair at given scale

Utils.cpp/Utils.hpp - provides a support class for binary files reading and writing operations.

FOLDER CONTENTS:

inputFiles.csv, inputFiles_SBM.csv - lists of all files in the ReBaQ and S-ReBaQ datasets rest.

NOTE:

To use ReBaQ / S-ReBaQ databases (Link: https://drive.google.com/drive/folders/1bg8YRPIBcxpKIF9BIPisULPBPcA5x-Bk?usp=sharing_eil&ts=5aa5e096), use the inputFiles.csv / inputFiles_SBM.csv. To use other databases, please create CSV files in the same format.

Before compiling, please update the following paths in main.cpp:

  1. inputFiles.csv / inputFiles_SBM.csv
  2. folder to input image sequences
  3. folder to reconstructed background images
  4. folder for output files

rbqi's People

Stargazers

 avatar  avatar

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.