Home
last modified time | relevance | path

Searched refs:xyy (Results 1 – 3 of 3) sorted by relevance

/zscilib-3.4.0/src/colorimetry/
Dconv.c492 zsl_clr_conv_xyy_xyz(struct zsl_clr_xyy *xyy, struct zsl_clr_xyz *xyz) in zsl_clr_conv_xyy_xyz() argument
501 xyz->xyz_x = xyy->xyy_x * xyy->xyy_Y / xyy->xyy_y; in zsl_clr_conv_xyy_xyz()
502 xyz->xyz_y = xyy->xyy_Y; in zsl_clr_conv_xyy_xyz()
503 xyz->xyz_z = (1.0 - xyy->xyy_x - xyy->xyy_y) * xyy->xyy_Y / xyy->xyy_y; in zsl_clr_conv_xyy_xyz()
504 xyz->observer = xyy->observer; in zsl_clr_conv_xyy_xyz()
505 xyz->illuminant = xyy->illuminant; in zsl_clr_conv_xyy_xyz()
511 zsl_clr_conv_xyz_xyy(struct zsl_clr_xyz *xyz, struct zsl_clr_xyy *xyy) in zsl_clr_conv_xyz_xyy() argument
518 xyy->xyy_x = xyz->xyz_x / (xyz->xyz_x + xyz->xyz_y + xyz->xyz_z); in zsl_clr_conv_xyz_xyy()
519 xyy->xyy_y = xyz->xyz_y / (xyz->xyz_x + xyz->xyz_y + xyz->xyz_z); in zsl_clr_conv_xyz_xyy()
520 xyy->xyy_Y = xyz->xyz_y; in zsl_clr_conv_xyz_xyy()
[all …]
/zscilib-3.4.0/tests/src/
Dclr_conv.c74 struct zsl_clr_xyy xyy; in ZTEST() local
77 memset(&xyy, 0, sizeof xyy); in ZTEST()
83 rc = zsl_clr_conv_cct_xyy(&cct, ZSL_CLR_OBS_2_DEG, &xyy); in ZTEST()
88 zassert_true(val_is_equal(xyy.xyy_x, 0.4442166, 1E-6), NULL); in ZTEST()
89 zassert_true(val_is_equal(xyy.xyy_y, 0.4064293, 1E-6), NULL); in ZTEST()
90 zassert_true(xyy.xyy_Y == 1.0, NULL); in ZTEST()
91 zassert_true(xyy.observer == ZSL_CLR_OBS_2_DEG, NULL); in ZTEST()
92 zassert_false(xyy.x_invalid, NULL); in ZTEST()
93 zassert_false(xyy.y_invalid, NULL); in ZTEST()
94 zassert_false(xyy.Y_invalid, NULL); in ZTEST()
[all …]
/zscilib-3.4.0/include/zsl/
Dcolorimetry.h558 int zsl_clr_conv_xyy_xyz(struct zsl_clr_xyy *xyy, struct zsl_clr_xyz *xyz);
569 int zsl_clr_conv_xyz_xyy(struct zsl_clr_xyz *xyz, struct zsl_clr_xyy *xyy);
579 int zsl_clr_conv_xyy_uv60(struct zsl_clr_xyy *xyy, struct zsl_clr_uv60 *uv);
612 int zsl_clr_conv_uv60_xyy(struct zsl_clr_uv60 *uv, struct zsl_clr_xyy *xyy);
699 struct zsl_clr_xyy *xyy);