15,042,397 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: How do you read / use this code? Bram van Kampen8-Sep-16 14:40 Bram van Kampen 8-Sep-16 14:40
 Re: How do you read / use this code? leon de boer8-Sep-16 17:26 leon de boer 8-Sep-16 17:26
 SOLVED Re: How do you read / use this code? Vaclav_9-Sep-16 18:23 Vaclav_ 9-Sep-16 18:23
 Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp - My best solution Keith Davis3-Sep-16 6:28 Keith Davis 3-Sep-16 6:28
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Richard MacCutchan3-Sep-16 6:36 Richard MacCutchan 3-Sep-16 6:36
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis3-Sep-16 6:47 Keith Davis 3-Sep-16 6:47
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis3-Sep-16 7:11 Keith Davis 3-Sep-16 7:11
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp leon de boer4-Sep-16 3:54 leon de boer 4-Sep-16 3:54
 All the gamma ramp or inv ramp does is stretch or compress the greyscale representation of the color range map. So two simplest shapes you play with is exponential and 1-exponential graphs. A simple google of the two functions will give you the formula and code for them. The above is an exponential hence the power function. Really you only need the exponential form because 1-exp will give you the reverse code. So if the above code works as you want 1 - (the exponential result) is the inverse it really is that simple as the code result must be in the range between 0-1 you should be able to see why it inverts the graph. If you can't see the logic google exp function and 1-exp function for the explaination. In vino veritas
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis4-Sep-16 9:10 Keith Davis 4-Sep-16 9:10
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp leon de boer4-Sep-16 22:36 leon de boer 4-Sep-16 22:36
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis5-Sep-16 4:38 Keith Davis 5-Sep-16 4:38
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp leon de boer5-Sep-16 6:06 leon de boer 5-Sep-16 6:06
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis5-Sep-16 8:23 Keith Davis 5-Sep-16 8:23
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp leon de boer5-Sep-16 18:55 leon de boer 5-Sep-16 18:55
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis5-Sep-16 19:55 Keith Davis 5-Sep-16 19:55
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp Keith Davis8-Sep-16 9:31 Keith Davis 8-Sep-16 9:31
 Re: Reference CalculateRamp - How to derive entry arguments from the existing Gamma Ramp - My Solution Keith Davis7-Sep-16 10:30 Keith Davis 7-Sep-16 10:30
 Printer Control Bram van Kampen27-Aug-16 15:38 Bram van Kampen 27-Aug-16 15:38
 Re: Printer Control Richard MacCutchan27-Aug-16 20:31 Richard MacCutchan 27-Aug-16 20:31
 Re: Printer Control Bram van Kampen28-Aug-16 14:20 Bram van Kampen 28-Aug-16 14:20
 Re: Printer Control Richard MacCutchan28-Aug-16 20:56 Richard MacCutchan 28-Aug-16 20:56
 Re: Printer Control Jochen Arndt28-Aug-16 21:38 Jochen Arndt 28-Aug-16 21:38
 Re: Printer Control Richard MacCutchan28-Aug-16 22:03 Richard MacCutchan 28-Aug-16 22:03
 Re: Printer Control Jochen Arndt28-Aug-16 22:09 Jochen Arndt 28-Aug-16 22:09
 Re: Printer Control Richard MacCutchan28-Aug-16 22:19 Richard MacCutchan 28-Aug-16 22:19
 Last Visit: 31-Dec-99 18:00     Last Update: 28-Sep-21 7:58 Refresh ᐊ Prev1...294295296297298299300301302303 Next ᐅ