#include <HxRgbLogMag.h>
Public Types | |
| typedef ValDoubleT | ArithTypeDouble |
| The "double" arithtype. More... | |
Public Methods | |
| HxRgbLogMag (HxTagList &tags) | |
| Constructor. More... | |
| int | doIt (const ValT &pixV) |
| Actual operation for the "standard" arithtype. More... | |
| int | doItDouble (const ValDoubleT &pixV) |
| Actual operation for the "double" arithtype. More... | |
Static Public Methods | |
| HxString | className () |
| The name : "LogMagnitude". More... | |
log(1.0+norm2(pixV)) is stretched between lowVal and highVal.
norm2 already taken in HxImageRep::getRgbPixels2d
|
|||||
|
The "double" arithtype.
|
|
||||||||||
|
Constructor.
|
|
||||||||||
|
Actual operation for the "standard" arithtype.
00042 {
00043 double v = ::log(pixV.x()-_lowVal);
00044 int x = (int) (v*_factor);
00045 return (255 << 24) | (x << 16) | (x << 8) | x;
00046 }
|
|
||||||||||
|
Actual operation for the "double" arithtype.
00050 {
00051 double v = ::log(pixV.x()-_lowVal);
00052 int x = (int) (v*_factor);
00053 return (255 << 24) | (x << 16) | (x << 8) | x;
00054 }
|
|
|||||||||
|
The name : "LogMagnitude".
00058 { return HxString("LogMagnitude"); }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001