X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2Fvv.cxx;h=d4ef1eac3e629e8d60a816b9aa984e246759d6c7;hb=b2a15c048423c022085de60356f15ab014f75522;hp=47057e4a0ed335cc3720cec279c5ffcfab6f9c29;hpb=401388055a9276c211c06f7f82ea5a0869ca3728;p=clitk.git diff --git a/vv/vv.cxx b/vv/vv.cxx index 47057e4..d4ef1ea 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -45,7 +45,7 @@ #include #include -typedef enum {O_BASE,O_OVERLAY,O_FUSION,O_VF,O_CONTOUR} OpenModeType; +typedef enum {O_BASE,O_OVERLAY,O_FUSION,O_VF,O_CONTOUR,O_LANDMARKS} OpenModeType; typedef enum {P_NORMAL,P_SEQUENCE,P_WINDOW,P_LEVEL} ParseModeType; void load_image_first_error() @@ -195,6 +195,9 @@ int main( int argc, char** argv ) } else if (current=="--fusion") { if (!n_image_loaded) load_image_first_error(); open_mode = O_FUSION; + } else if (current=="--landmarks") { + if (!n_image_loaded) load_image_first_error(); + open_mode = O_LANDMARKS; } else if (current == "--sequence") { if(open_mode==O_BASE) n_image_loaded++; //count only one for the whole sequence parse_mode=P_SEQUENCE; @@ -273,6 +276,8 @@ int main( int argc, char** argv ) window.AddDCStructContour(n_image_loaded-1,current.c_str()); else if (open_mode==O_FUSION) window.AddFusionImage(n_image_loaded-1,current.c_str()); + else if (open_mode==O_LANDMARKS) + window.AddLandmarks(n_image_loaded-1,current.c_str()); open_mode = O_BASE; } }