complex_colormap icon indicating copy to clipboard operation
complex_colormap copied to clipboard

Complex sine example

Open OverLordGoldDragon opened this issue 2 years ago • 2 comments

OverLordGoldDragon avatar Oct 21 '23 13:10 OverLordGoldDragon

I really like the uniformity with const, but it doesn't handle amplitude modulation well. Comparison vs CEC_C1, which I think handles it better with appropriately chosen alpha, below.

My current heuristic is alpha = abs(x)**(2/3), though effectiveness varies with phase - higher frequencies are handled better since more "alpha-resistant" colors occupy greater portion of image.

cmap_vs

OverLordGoldDragon avatar Oct 21 '23 14:10 OverLordGoldDragon

Here's an approach (comparison included) that I think handles amplitude pretty well, though not so much phase. Python version

OverLordGoldDragon avatar Oct 21 '23 14:10 OverLordGoldDragon