Image mapping using lookup tables [on hold]
- by jblasius
I have an optimization problem.
I'm using a look-up table to map a pixel in an image:
for (uint32_t index = 0u; index < imgSize; index++)
{
img[ lt[ index ] ] = val;
}
Is there a faster way to do this, perhaps using a reinterpret_cast or something like that?
I am accessing two different memory addresses, so what is the compiler doing?
…