Tuesday, 15 March 2011

Not being able to load DICOM images with CImg -



Not being able to load DICOM images with CImg -

my question regarding functionality of cimg library read , write images in dicom .dcm format. next docummentation, after installing medcon, cimg should automatically find path medcon.exe (that can otherwise specified manually) , code below should work:

#include "cimg.h" using namespace cimg_library; //#define cimg_medcon_path "c:\program files\xmedcon\bin\medcon.exe" int main(int argc, const char * argv[]){ cimg<> img("poc.dcm"); int success = 1; homecoming success;

}

where poc.dcm lies in main folder of source code. however, upon execution, reporting me "medcon.exe" not recognized executable program. same thing when uncomment cimg_medcon_path line.

i have installed medcon in standard form, , have checked xmedcon.exe makes gui appear, , medcon.exe makes prints in console. running windows 7, way, , using visual studio 2010.

any help appreciated!

many thanks,

adrian

dicom cimg

No comments:

Post a Comment