From 23e0509d6e590039ba625dbb59f5de6cf1c36301 Mon Sep 17 00:00:00 2001 From: Derek Lamb Date: Tue, 17 Sep 2024 13:00:07 -0600 Subject: [PATCH] Fix non-increasing ramp.fits LUT values Pete Ratzlaff wrote to the pdl-general list on 2023-07-05 about a problem with the PDL::Graphics::LUT default ramp having values that are not always increasing--there is a wrinkle in the LUT. This commit fixes that for both the ramp and the rgb table, and also aligns the values of the neg.fits ramp so that they agree with the new values in ramp.fits. xlinvals was used to make the new ramp and RGB LUT values. --- lib/PDL/Graphics/LUT/ramps/neg.fits | Bin 5760 -> 5760 bytes lib/PDL/Graphics/LUT/ramps/ramp.fits | Bin 5760 -> 5760 bytes lib/PDL/Graphics/LUT/tables/ramp.fits | Bin 8640 -> 8640 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/lib/PDL/Graphics/LUT/ramps/neg.fits b/lib/PDL/Graphics/LUT/ramps/neg.fits index 7dbb3d4641323ab0ac1667daf4c6351ea23ba613..02896d100fd8a733c9fce92178189492fa5c09e4 100644 GIT binary patch literal 5760 zcmeHHXIKe#k283C$3>dF;uOu~WznK5mTj(S3~OX;RxX}rCBL$=`(6YGG&6>B zb-Da}nP0FiHeAt!B}&Mx6ze^49eBRw;`vpn%6Ls>lTEoNOj$wACc(xq2S4{9S(lyL z-OCCda8cJ78Wz&Hx$yJxtL*7h-P5<42()OL5@Gis-p!-`fW)y(hr>ez|r>FN1^ zOv*2J;;Cj`FD$bBe6Gta&CRBzW;4$q`<*mfk`( zM~a&>R`xg2rrrGAIxbR^dG5S#%$yT1u*?A6B5E7MLPeBCiGA%Xo)zCF$V+Cgcl`aKb3b+*bA1Qz~Zf z6s;~^Lc)cMh%dPS+xZgc=gz}=_8hb`XYtGFGl)BN8kUo%U_NmYvByuqbnG}<9zBMi zi;qG*QjD0QBZxj+gs8&9P!1I$vfvOR4i+H%z(L6S58$VL`|;!6efVL|UVOiM4_fTn zjqi5u!nZqiqWSh6Xtr%TzS+7BO}A`Clg(Q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