Closed mjchambers closed 6 years ago
from thin script
fs::path output_full_path = output_folder_path / fs::path(output_file_path.string() + ".nrrd");
unsigned int foreground_value = 255;
auto thin_image = ImageFromSet<Image>::create(thin_set, foreground_value);
typedef itk::ImageFileWriter<Image::ITKImage> ITKImageWriter;
typename ITKImageWriter::Pointer writer = ITKImageWriter::New();
writer->SetFileName(output_full_path.string().c_str());
writer->SetInput(thin_image.getITKImagePointer());
writer->Update();
}
Hi @mjchambers, #9 fixes this. I would recommend you update the repository to the latest version once this gets merged.
I have committed a few extra changes since the first version you downloaded, so a few things might have changed (for example, the thin scripts now requires a distance_map as input). Also there were some reorganization of folders, and I also changed the test frameork, but that doesn't affect you much.
Anyway, if you need some help, don't hesitate to ask me.
3D Segmented image:
Skeletonized image:
During skeletonization (after applying the 'thin'script), size of image and space origin change.