Skip to content
Snippets Groups Projects
Commit e869e2e1 authored by Jan Müller's avatar Jan Müller
Browse files

Reomove lookuptable from transferfunction test

#470
parent 3bd8b394
No related branches found
No related tags found
1 merge request!151Feature/#470 create a color lookup table
......@@ -88,19 +88,6 @@ SCENARIO("Creating, saving and loading a transfer function",
REQUIRE(transfer_function.Interpolate(0.5f) == black_color);
}
}
WHEN("We ask for a nearest neighbor interpolated Lookup table") {
transfer_function.SetMode(
phx::TransferFunction::InterpolationMode::NEAREST_NEIGHBOR);
auto lut = transfer_function.GetLookupTable(11);
THEN("The Lookuptable is generated correctly") {
REQUIRE(lut.at(0).r == Approx(1.0));
REQUIRE(lut.at(2).r == Approx(1.0));
REQUIRE(lut.at(5).r == Approx(0.0));
REQUIRE(lut.at(7).r == Approx(0.0));
REQUIRE(lut.at(10).r == Approx(0.0));
}
}
}
GIVEN("A test transfer function with only one value") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment