Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
nmslib/data/data_conv/sqfd/lab.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (27 sloc)
769 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Non-metric Space Library | |
* | |
* Main developers: Bilegsaikhan Naidan, Leonid Boytsov, Yury Malkov, Ben Frederickson, David Novak | |
* | |
* For the complete list of contributors and further details see: | |
* https://github.com/searchivarius/NonMetricSpaceLib | |
* | |
* Copyright (c) 2013-2018 | |
* | |
* This code is released under the | |
* Apache License Version 2.0 http://www.apache.org/licenses/. | |
* | |
*/ | |
#ifndef _LAB_H_ | |
#define _LAB_H_ | |
#include "global.h" | |
namespace sqfd { | |
Float3 RgbToXyz(const Float3& rgb); | |
Float3 XyzToLab(const Float3& xyz); | |
Float3 RgbToLab(const Float3& rgb); | |
Float3 XyzToRgb(const Float3& xyz); | |
Float3 LabToXyz(const Float3& lab); | |
Float3 LabToRgb(const Float3& lab); | |
float DeltaE(const Float3& lab1, const Float3& lab2); | |
} | |
#endif // _LAB_H_ |