#include <HxNJet.h>
Public Methods | |
| HxNJet () | |
| Constructor. More... | |
| HxNJet (HxImageRep im, int N, double scale, double precision=3) | |
| Construct an NJet from the given image at the given scale in given precision using Gaussians. More... | |
| HxNJet (HxString fileName) | |
| Read an NJet from file. More... | |
| HxNJet (const HxNJet &rhs) | |
| Copy constructor. More... | |
| virtual | ~HxNJet () |
| Destructor. More... | |
| bool | toFile (HxString fileName) const |
| Write an NJet to file. More... | |
| HxNJet & | operator= (const HxNJet &rhs) |
| Assignment operator. More... | |
| int | ident () const |
| The identity of the NJet. More... | |
| int | order () const |
| The order N. More... | |
| double | scale () const |
| The scale. More... | |
| int | nrComponents () const |
| The number of components. More... | |
| int | isColor () const |
| Indicator whether its a color or grey value NJet. More... | |
| HxImageRep | xy (int x, int y) const |
| Get the specified 2D component. More... | |
| HxImageRep | xyz (int x, int y, int z) const |
| Get the specified 3D component. More... | |
| HxImageRep | xyl (int x, int y, int l) const |
| Get the specified 2D color component. More... | |
| HxImageRep | xyzl (int x, int y, int z, int l) const |
| Get the specified 3D color component. More... | |
| HxImageRep | getLidx (int i) const |
| Get the specified L component. More... | |
| HxImageRep | getJidx (int i) const |
| Get the specified J component. More... | |
| HxImageRep | getMidx (int i) const |
| Get the specified M component. More... | |
| HxImageList | getLList () const |
| Get all the L components. More... | |
| HxImageList | getJList () const |
| Get all the J components. More... | |
| HxImageList | getMList () const |
| Get all the M components. More... | |
| HxImageList | getList () const |
| Get all the components. More... | |
| HxImageRep | getLw () const |
| Get the L gradient magnitude. More... | |
| HxImageRep | getJw () const |
| Get the J gradient magnitude. More... | |
| HxImageRep | getMw () const |
| Get the M gradient magnitude. More... | |
| void | rotate (double phi) |
| void | rotateDeg (double phi) |
| void | rotate (HxImageRep phi) |
| void | resample (double fac) |
| void | truncate (int order) |
| void | normalize () |
| STD_OSTREAM & | put (STD_OSTREAM &os) const |
| Put some information on the given stream. More... | |
| int | ord2idx (int i, int j) const |
| Translate from ord to idx. More... | |
| int | ord2idx (int i, int j, int k) const |
| Translate from ord to idx 3D (not supported yet). More... | |
Generates all components up to and including the N-th order in the following sequence: For 2D images:
Components L, J, and M can be specified in one of the following ways:
|
|
Constructor.
00015 : _pointee(0)
00016 {
00017 }
|
|
||||||||||||||||||||
|
Construct an NJet from the given image at the given scale in given precision using Gaussians.
|
|
|
Read an NJet from file.
|
|
|
Copy constructor.
|
|
|
Destructor.
00041 {
00042 }
|
|
|
Write an NJet to file.
00046 {
00047 HxTagList tags;
00048
00049 return HxNJetDataFactory::instance().toFile(*this, fileName, tags);
00050 }
|
|
|
Assignment operator.
|
|
|
The identity of the NJet.
00063 {
00064 return pointee() ? pointee()->ident() : 0;
00065 }
|
|
|
The order N.
00069 {
00070 return _order;
00071 }
|
|
|
The scale.
00075 {
00076 return _scale;
00077 }
|
|
|
The number of components.
00081 {
00082 return pointee() ? pointee()->nrComponents() : 0;
00083 }
|
|
|
Indicator whether its a color or grey value NJet.
00087 {
00088 return pointee() ? pointee()->isColor() : 0;
00089 }
|
|
||||||||||||
|
Get the specified 2D component.
|
|
||||||||||||||||
|
Get the specified 3D component.
|
|
||||||||||||||||
|
Get the specified 2D color component.
|
|
||||||||||||||||||||
|
Get the specified 3D color component.
|
|
|
Get the specified L component.
00093 {
00094 HxImageRep im;
00095 return pointee() ? pointee()->getL(i) : im;
00096 }
|
|
|
Get the specified J component.
00100 {
00101 HxImageRep im;
00102 return pointee() ? pointee()->getJ(i) : im;
00103 }
|
|
|
Get the specified M component.
00107 {
00108 HxImageRep im;
00109 return pointee() ? pointee()->getM(i) : im;
00110 }
|
|
|
Get all the L components.
00154 {
00155 HxImageList l;
00156
00157 for (int i=0; i < nrComponents(); i++)
00158 l += getLidx(i);
00159
00160 return l;
00161 }
|
|
|
Get all the J components.
00165 {
00166 HxImageList l;
00167
00168 if (isColor()) {
00169 for (int i=0; i < nrComponents(); i++)
00170 l += getJidx(i);
00171 }
00172
00173 return l;
00174 }
|
|
|
Get all the M components.
00178 {
00179 HxImageList l;
00180
00181 if (isColor()) {
00182 for (int i=0; i < nrComponents(); i++)
00183 l += getMidx(i);
00184 }
00185
00186 return l;
00187 }
|
|
|
Get all the components.
00191 {
00192 HxImageList l;
00193
00194 HxImageList ll = getLList();
00195 HxImageList jl = getJList();
00196 HxImageList ml = getMList();
00197
00198 l = ll + jl;
00199 l = l + ml;
00200
00201 return l;
00202 }
|
|
|
Get the L gradient magnitude.
00206 {
00207 HxImageRep im;
00208 return pointee() ? pointee()->getLw() : im;
00209 }
|
|
|
Get the J gradient magnitude.
00213 {
00214 HxImageRep im;
00215 return pointee() ? pointee()->getJw() : im;
00216 }
|
|
|
Get the M gradient magnitude.
00220 {
00221 HxImageRep im;
00222 return pointee() ? pointee()->getMw() : im;
00223 }
|
|
|
Put some information on the given stream.
|
|
||||||||||||
|
Translate from ord to idx.
00161 { int n = i+j;
00162 return n*(n+1)/2+j;}
|
|
||||||||||||||||
|
Translate from ord to idx 3D (not supported yet).
00166 { int n = i+j;
00167 return n*(n+1)/2+j;}
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001