Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anderslanglands/colorspace-rs
/ functions
Functions
229 in github.com/anderslanglands/colorspace-rs
⨍
Functions
229
◇
Types & classes
26
↓ 52 callers
Method
iter
(&self)
src/spd.rs:58
↓ 40 callers
Method
evaluate
(&self, x: T)
src/interpolation.rs:150
↓ 29 callers
Function
lab
(L: T, a: T, b: T)
src/lab.rs:21
↓ 28 callers
Method
len
Get the number of [Sample]s this SPD contains.
src/vspd.rs:297
↓ 27 callers
Method
iter
(&self)
src/vspd.rs:73
↓ 21 callers
Function
generate_colorchecker_rgb
(name, model, t, checker, cmfs, ill)
generate_data.py:68
↓ 16 callers
Method
align
Returns a new [VSPD] whose shape matches the supplied [SpdShape] by first interpolating then extrapolating
src/vspd.rs:350
↓ 15 callers
Function
clamp
Clamp `x` to lie in the range `[a, b]`
src/math.rs:9
↓ 14 callers
Function
delta_E_2000
(c1: Lab<T>, c2: Lab<T>)
src/lab.rs:144
↓ 11 callers
Method
align
Aligns the CMF to the given [SpdShape] by calling [VSPD::align()] for each [VSPD]
src/cmf.rs:26
↓ 11 callers
Method
iter_mut
(&mut self)
src/spd.rs:62
↓ 11 callers
Method
powf
(&self, x: T)
src/rgb.rs:33
↓ 11 callers
Method
values
Get an iterator over this SPD's values
src/vspd.rs:322
↓ 10 callers
Method
abs
(&self)
src/xyz.rs:38
↓ 9 callers
Method
samples
Get a reference to the [Sample] vector.
src/vspd.rs:317
↓ 9 callers
Method
shape
Get this SPD's [SpdShape]
src/vspd.rs:277
↓ 8 callers
Function
xyz_to_rgb
Convert `xyz` to RGB using the given matrix
src/transform.rs:45
↓ 8 callers
Function
xyz_to_rgb_matrix
Create a matrix to go from XYZ to the given colour space, assuming `xyz_white` is the reference white of the XYZ. CAT02 is used for the CAT.
src/transform.rs:10
↓ 7 callers
Method
first
Get the first [Sample] this SPD contains
src/vspd.rs:302
↓ 7 callers
Function
rgb_workout
( model: &ColorSpaceRGB<f64>, checker_linear: &HashMap<String, RGBf64>, checker_encode
src/color_space_rgb.rs:900
↓ 7 callers
Method
to_xyz
(&self)
src/spd.rs:54
↓ 7 callers
Function
xyz_to_lab
(xyz: X1, ref_white: X2)
src/lab.rs:30
↓ 6 callers
Function
alexa_logc_v3_t
(x: T)
src/color_space_rgb.rs:119
↓ 6 callers
Function
bt2020_t
(x: T)
src/color_space_rgb.rs:72
↓ 6 callers
Function
bt709_t
(x: T)
src/color_space_rgb.rs:46
↓ 6 callers
Method
encode
(&self, c: RGBf<T>)
src/color_space_rgb.rs:406
↓ 6 callers
Method
last
Get the first [Sample] this SPD contains
src/vspd.rs:307
↓ 6 callers
Function
linear_t
(x: T)
src/color_space_rgb.rs:98
↓ 6 callers
Function
srgb_t
(x: T)
src/color_space_rgb.rs:21
↓ 5 callers
Function
cat02
( wp_src: X1, wp_dst: X2, )
src/chromatic_adaptation.rs:109
↓ 5 callers
Function
spd_to_xyz_integration
( spd: &VSPD, illuminant: &VSPD, cmf: &CMF, shape: SpdShape<f64>, )
src/vspd.rs:538
↓ 4 callers
Function
cos
(x: T)
src/math.rs:53
↓ 4 callers
Method
end
Get the end wavelength of this SPD's [SpdShape].
src/vspd.rs:287
↓ 4 callers
Function
hypot
(x: T, y: T)
src/math.rs:83
↓ 4 callers
Function
lagrange_coefficients_astm_e2022
Compute the Lagrange coefficients for given interval size using ASTM E2022-11 method
src/vspd.rs:852
↓ 4 callers
Function
sqr
(x: T)
src/math.rs:33
↓ 4 callers
Method
start
Get the start wavelength of this SPD's [SpdShape].
src/vspd.rs:282
↓ 3 callers
Method
decode
(&self, c: RGBf<T>)
src/color_space_rgb.rs:415
↓ 3 callers
Function
hadd_avx
(v0: __m256)
src/spd.rs:184
↓ 3 callers
Method
interpolate
Returns a new [VSPD] whose boundaries are the narrower of `self` and `shape`, interpolated to the interval given in `shape`
src/vspd.rs:333
↓ 3 callers
Method
inverse
Matrix inverse
src/math.rs:216
↓ 3 callers
Function
rgb_to_rgb
Convert the [RGBf] in `from_space` to `to_space`, reading from `from` and writing to `to`.
src/transform.rs:94
↓ 3 callers
Function
rgbf32
(r: f32, g: f32, b: f32)
src/rgb.rs:75
↓ 3 callers
Function
rgbu8_slice_as_u8
(slice: &[RGBu8])
examples/convert_with_matrices.rs:131
↓ 3 callers
Function
rgbu8_slice_as_u8
(slice: &[RGBu8])
examples/convert.rs:85
↓ 3 callers
Method
to_xyz
Convert [VSPD] to an [XYZf64] using ASTM E308 method. The conversion method expects this SPD to have an interval of 1, 5, 10 or 20nm. If this SPD has
src/vspd.rs:432
↓ 3 callers
Method
trim
Trim this [VSPD] to lie inside the given [SpdShape]. Note that this does not modify the spacing of samples in the SPD. If you want the boundaries of t
src/vspd.rs:401
↓ 3 callers
Function
write_png
(filename: &str, width: u32, height: u32, pixels: &[u8])
examples/convert_with_matrices.rs:120
↓ 3 callers
Function
write_png
(filename: &str, width: u32, height: u32, pixels: &[u8])
examples/convert.rs:74
↓ 2 callers
Function
abs
(x: T)
src/math.rs:38
↓ 2 callers
Function
adjust_tristimulus_weighting_factors_astme308
( w_x: &[f64], w_y: &[f64], w_z: &[f64], shape_r: SpdShape<f64>, shape_t: SpdShape<f64>, )
src/vspd.rs:768
↓ 2 callers
Function
atan2
(x: T, y: T)
src/math.rs:68
↓ 2 callers
Function
cct
(t: T)
src/illuminant.rs:39
↓ 2 callers
Method
extrapolate
Create a new VSPD by extrapolating the boundaries of the domain of this VSPD to the given SpdShape. Note that the interval of the resulting VSPD is ta
src/vspd.rs:361
↓ 2 callers
Function
lagrange_coefficients
(r: f64, n: usize)
src/vspd.rs:809
↓ 2 callers
Function
linspace
(start: f64, end: f64, steps: usize)
src/vspd.rs:840
↓ 2 callers
Function
rgb_to_rgb_matrix
Create a [Matrix33] that will convert between the two given color spaces. This includes chromatic adaptation between the white points specified in th
src/transform.rs:80
↓ 2 callers
Function
rgbf
(r: T, g: T, b: T)
src/rgb.rs:67
↓ 2 callers
Function
sin
(x: T)
src/math.rs:43
↓ 2 callers
Function
spd_to_xyz_avx
(spd: &SPD)
src/spd.rs:118
↓ 2 callers
Function
spd_to_xyz_tristimulus_weighting_factors_astme308
( spd: &VSPD, illuminant: &VSPD, cmf: &CMF, )
src/vspd.rs:580
↓ 2 callers
Function
sqrt
(x: T)
src/math.rs:28
↓ 2 callers
Function
tristimulus_weighting_factors_astme2022
( cmf: &CMF, illuminant: &VSPD, shape: SpdShape<f64>, )
src/vspd.rs:637
↓ 2 callers
Function
xyz
(x: T, y: T, z: T)
src/xyz.rs:47
↓ 1 callers
Method
approx_eq
(self, other: Self, margin: T)
src/vspd.rs:151
↓ 1 callers
Function
bradford
( wp_src: X1, wp_dst: X2, )
src/chromatic_adaptation.rs:14
↓ 1 callers
Function
build_xyz_to_rgb_matrix
( red: &XYY<T>, green: &XYY<T>, blue: &XYY<T>, white: &XYY<T>, )
src/color_space_rgb.rs:421
↓ 1 callers
Function
calculate_interval
(samples: &[Sample])
src/vspd.rs:498
↓ 1 callers
Function
calculate_shape
(samples: &[Sample])
src/vspd.rs:522
↓ 1 callers
Function
chromatic_adaptation_matrix_VonKries
(XYZ_w, XYZ_wr, transform='CAT02')
generate_data.py:250
↓ 1 callers
Function
convert_checker_spd
()
benches/spd_to_xyz.rs:16
↓ 1 callers
Function
convert_checker_spd_avx
()
benches/spd_to_xyz.rs:23
↓ 1 callers
Function
convert_checker_vspd
()
benches/spd_to_xyz.rs:9
↓ 1 callers
Function
convert_checker_xyz_to_rgb32
(mtx: &M3f32, xyzs: &[XYZf32])
benches/xyz_to_rgb.rs:17
↓ 1 callers
Function
convert_checker_xyz_to_rgb64
(mtx: &M3f64, xyzs: &[XYZf64])
benches/xyz_to_rgb.rs:10
↓ 1 callers
Function
exp
(x: T)
src/math.rs:73
↓ 1 callers
Function
generate_colorchecker_xyz
(name, t, checker, cmfs, ill)
generate_data.py:35
↓ 1 callers
Function
hmax
Returns the value of the largest component of `c`
src/rgb.rs:458
↓ 1 callers
Method
interval
Get the interval of this SPD's [SpdShape].
src/vspd.rs:292
↓ 1 callers
Function
lab_to_xyz
( lab: X1, ref_white: X2, )
src/lab.rs:65
↓ 1 callers
Function
my_basis
()
src/uplifting.rs:52
↓ 1 callers
Function
read_png
(filename: &str)
examples/convert_with_matrices.rs:111
↓ 1 callers
Function
read_png
(filename: &str)
examples/convert.rs:65
↓ 1 callers
Function
rgb_to_xyz
Convert a single [RGBf] to [XYZ] using the given [Matrix33]
src/transform.rs:68
↓ 1 callers
Function
rgb_to_xyz_matrix
Create a mtrix to go from the given RGB space to XYZ, with the given XYZ white point.
src/transform.rs:34
↓ 1 callers
Method
shape
Returns the [SpdShape] of the CMF.
src/cmf.rs:20
↓ 1 callers
Function
uplift_my
(rgb: RGBf64)
src/uplifting.rs:8
↓ 1 callers
Function
xyz_slice_to_rgb
Convert a slice of XYZ to RGB with the given matrix
src/transform.rs:54
Method
abs
(&self)
src/rgb.rs:41
Function
acos
(x: T)
src/math.rs:58
Method
add
(self, rhs: XYZ<T>)
src/xyz.rs:187
Method
add
(self, rhs: T)
src/math.rs:350
Method
add
(self, rhs: RGBf<T>)
src/rgb.rs:228
Method
add_assign
(&mut self, rhs: XYZ<T>)
src/xyz.rs:197
Method
add_assign
(&mut self, rhs: RGBf<T>)
src/rgb.rs:242
Function
alexa_logc_v3
(x: RGBf<T>)
src/color_space_rgb.rs:139
Method
approx_eq
(self, other: Self, margin: T)
src/xyz.rs:144
Method
approx_eq
(self, other: Self, margin: T)
src/rgb.rs:166
Function
asin
(x: T)
src/math.rs:48
Method
astm_e308
()
src/vspd.rs:65
next →
1–100 of 229, ranked by callers