Forum Discussion
Altera_Forum
Honored Contributor
17 years agolinear to logarithmic conversion
Hi Guys, I need to implement Linear to Logarithmic conversion using Verilog HDL on overexposed and underexposed pictures through Look Up Tables. But, I lack information on this. Can anyone pr...
Altera_Forum
Honored Contributor
17 years agoHi,
in my opinion, the first question you should ask yourself is the data format (in linear) and the value range you want to use: e.g: float, double, fixedpoint, signed/unsigned integer, maybe 7 bits integer and so on. If you have determined this very first issue you can go on with e.g. Matlab: you could approximate the log curve you need with lookup tables, raw+fine lookup tables and maybe an interpolation, or an algorithmic approach to approximate the log curve with polynomials. I think there is plenty of information an how to implement this special functionality on the Internet => google, ieee, and so on. Did you take a sight on opencores.org? Maybe there is a finished core available. regards, lestard