Skip to content
Discussion options

You must be logged in to vote

The example you mention is hosted here: https://github.com/sofa-framework/CGALPlugin/blob/master/scenes/MeshGenerationFromImage.scn

The image is loaded in the ImageContainer component, where you can specify a filename. Have you tried to specify a path to a NIfTI file? It should work. SOFA will consider files with .hdr and .nii as NIfTI images:

else if (fname.find(".hdr")!=std::string::npos || fname.find(".nii")!=std::string::npos)
{
float voxsize[3];
wimage->getCImgList().push_back(cimg_library::CImg<T>().load_analyze(fname.c_str(),voxsize));
if (!container->transformIsSet)
for(

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alvarez-pa
Comment options

You must be logged in to vote
2 replies
@hugtalbot
Comment options

@alvarez-pa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants