-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from Ogeon/lms
Implement LMS
- Loading branch information
Showing
11 changed files
with
829 additions
and
52 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//! Types for the LMS color space. | ||
|
||
#[allow(clippy::module_inception)] | ||
mod lms; | ||
|
||
pub mod meta; | ||
|
||
use crate::Alpha; | ||
|
||
pub use self::lms::*; | ||
|
||
/// LMS that uses the von Kries matrix. | ||
pub type VonKriesLms<M, T> = Lms<meta::WithLmsMatrix<M, meta::VonKries>, T>; | ||
|
||
/// LMSA that uses the von Kries matrix. | ||
pub type VonKriesLmsa<M, T> = Alpha<Lms<meta::WithLmsMatrix<M, meta::VonKries>, T>, T>; | ||
|
||
/// LMS that uses the Bradford matrix. | ||
pub type BradfordLms<M, T> = Lms<meta::WithLmsMatrix<M, meta::Bradford>, T>; | ||
|
||
/// LMSA that uses the Bradford matrix. | ||
pub type BradfordLmsa<M, T> = Alpha<Lms<meta::WithLmsMatrix<M, meta::Bradford>, T>, T>; |
Oops, something went wrong.