-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()
typedef enum {P_NORMAL,P_SEQUENCE,P_WINDOW,P_LEVEL} ParseModeType;
void load_image_first_error()
- const std::string open_mode_names[] = {"base", "overlay", "fusion", "vf", "contour"};
+ const std::string open_mode_names[] = {"base", "overlay", "fusion", "vf", "contour", "fusionSequence"};
if(open_mode==O_BASE)
window.LoadImages(sequence_filenames, vvImageReader::MERGEDWITHTIME);
else if (open_mode==O_OVERLAY)
window.AddOverlayImage(n_image_loaded-1,sequence_filenames,vvImageReader::MERGEDWITHTIME);
if(open_mode==O_BASE)
window.LoadImages(sequence_filenames, vvImageReader::MERGEDWITHTIME);
else if (open_mode==O_OVERLAY)
window.AddOverlayImage(n_image_loaded-1,sequence_filenames,vvImageReader::MERGEDWITHTIME);
<< "Open file(s) for visualization." << std::endl << std::endl
<< "OPTIONS may be:" << std::endl
<< "--help \t Print command line help and exit." << std::endl
<< "Open file(s) for visualization." << std::endl << std::endl
<< "OPTIONS may be:" << std::endl
<< "--help \t Print command line help and exit." << std::endl
- << "--window number\t Gray scale window width for all images." << std::endl
- << "--level number \t Gray scale window level for all images." << std::endl
+ << "--window number\t Gray scale window width for set of images appearing before in the cmd line (may appear more than once)." << std::endl
+ << "--level number \t Gray scale window level for set of images appearing before in the cmd line (may appear more than once)." << std::endl
<< "--linkall \t Link pan, zoom and spatial position of crosshair in images." << std::endl
<< "--log \t Log output messages in vv-log directory." << std::endl
<< "--state file \t Read display parameters from file." << std::endl
<< "--linkall \t Link pan, zoom and spatial position of crosshair in images." << std::endl
<< "--log \t Log output messages in vv-log directory." << std::endl
<< "--state file \t Read display parameters from file." << std::endl
<< "--overlay file \t Overlay the image in file with complementary colors." << std::endl
<< "--fusion file \t Overlay the image in file with alpha blending and colormap." << std::endl
//<< "--roi file \t Overlay binary mask images. Option may be repeated on a single base image." << std::endl
<< "--overlay file \t Overlay the image in file with complementary colors." << std::endl
<< "--fusion file \t Overlay the image in file with alpha blending and colormap." << std::endl
//<< "--roi file \t Overlay binary mask images. Option may be repeated on a single base image." << std::endl
} else if (current == "--sequence") {
if(open_mode==O_BASE) n_image_loaded++; //count only one for the whole sequence
parse_mode=P_SEQUENCE;
} else if (current == "--sequence") {
if(open_mode==O_BASE) n_image_loaded++; //count only one for the whole sequence
parse_mode=P_SEQUENCE;
} else if (current == "--window") {
parse_mode=P_WINDOW;
} else if (current == "--level") {
parse_mode=P_LEVEL;
} else if (current == "--linkall") {
} else if (current == "--window") {
parse_mode=P_WINDOW;
} else if (current == "--level") {
parse_mode=P_LEVEL;
} else if (current == "--linkall") {
std::string log_dir = QDir::tempPath().toStdString() + std::string("/vv-log");
if(itksys::SystemTools::FileExists(log_dir.c_str()) &&
std::string log_dir = QDir::tempPath().toStdString() + std::string("/vv-log");
if(itksys::SystemTools::FileExists(log_dir.c_str()) &&
} else {
std::vector<std::string> image;
image.push_back(current);
if(open_mode==O_BASE) {
window.LoadImages(image, vvImageReader::IMAGE);
n_image_loaded++;
} else {
std::vector<std::string> image;
image.push_back(current);
if(open_mode==O_BASE) {
window.LoadImages(image, vvImageReader::IMAGE);
n_image_loaded++;
}
else if (open_mode==O_VF)
window.AddField(current.c_str(), n_image_loaded-1);
}
else if (open_mode==O_VF)
window.AddField(current.c_str(), n_image_loaded-1);
window.AddDCStructContour(n_image_loaded-1,current.c_str());
else if (open_mode==O_FUSION)
window.AddFusionImage(n_image_loaded-1,current.c_str());
window.AddDCStructContour(n_image_loaded-1,current.c_str());
else if (open_mode==O_FUSION)
window.AddFusionImage(n_image_loaded-1,current.c_str());
- if(win!="" && lev!="") {
- window.SetWindowLevel(atof(win.c_str()), atof(lev.c_str()));
- window.ApplyWindowLevelToAllImages();
- }
+// if(win!="" && lev!="") {
+// window.SetWindowLevel(atof(win.c_str()), atof(lev.c_str()));
+// window.ApplyWindowLevelToAllImages();
+// }