MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoCSO/CSOProcessor/CSOLiveWireProcessor/CSOLiveWireNode.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00004 
00009 //----------------------------------------------------------------------------------
00010 
00011 
00012 #ifndef __CSOLiveWireNode_H
00013 #define __CSOLiveWireNode_H
00014 
00015 #include "SoCSOSystem.h"
00016 #include "SoCSOIncludes.h"
00017 
00018 #include <CSOTools/CSOHeapObject.h>
00019 
00020 ML_START_NAMESPACE
00021 
00023 
00025 struct SOCSO_EXPORT VoxelPos
00026 {
00027   VoxelPos() : posx(0), posy(0) {}
00028   VoxelPos(unsigned int  _posx,unsigned int  _posy) : posx(_posx), posy(_posy) {}
00029   VoxelPos(const VoxelPos& rhs) : posx(rhs.posx), posy(rhs.posy) {}
00030   unsigned int posx; 
00031   unsigned int posy; 
00032 };
00033 
00035 
00037 struct SOCSO_EXPORT CSOLiveWireNode : public CSOHeapObject
00038 {
00040   CSOLiveWireNode() : CSOHeapObject() {
00041     isVisited    = false;
00042     value        = FLT_MAX;
00043     //pathLength   = FLT_MAX;
00044     pathLength = 0.0f;
00045 
00046     posx = posy  = -1; // uninitialized
00047     directionToPred = -1;
00048   }
00049 
00050   bool  isVisited;        
00051 
00052   CSOLiveWireNode* predNode; 
00053   int directionToPred; 
00054 
00055   float pathLength;       
00056 
00057   float intensityValue;   
00058 
00059   int posx; 
00060   int posy; 
00061 
00062   Vector2f D;              
00063   float laplace;        
00064 
00065   float gradient;           
00066   float gradientNormalized; 
00067   float laplaceFeature;     
00068 
00069   float directionalCosts[8]; 
00070 
00071 };
00072 
00074 
00075 
00076 ML_END_NAMESPACE
00077 
00078 #endif // __CSOLiveWireNode_H