Skip to content

monailabel::MonaiLabelUtils

Public Functions

Name
bool createDir(const QString & dirPath)
bool copySegmentation(const QString & sourcePath, const QString & destinationPath)
bool deleteTempFile(const QString & filePath)
std::string getFeatureName(QSharedPointer< shapeworks::Session > session)
ImageType::Pointer loadNRRD(const std::string & filePath)
ImageType::Pointer extractOrganSegmentation(ImageType::Pointer inputImage, int label)
void saveNRRD(ImageType::Pointer image, const std::string & outputPath)
bool isOrganPresent(ImageType::Pointer image)
void processSegmentation(const std::string & segmentationPath, const std::map< int, std::string > & organLabels, const std::string & outputDir, const std::string & sampleId, std::vector< std::string > & organSegmentationPaths)

Public Functions Documentation

function createDir

cpp static bool createDir( const QString & dirPath )

function copySegmentation

cpp static bool copySegmentation( const QString & sourcePath, const QString & destinationPath )

function deleteTempFile

cpp static bool deleteTempFile( const QString & filePath )

function getFeatureName

cpp static std::string getFeatureName( QSharedPointer< shapeworks::Session > session )

function loadNRRD

cpp static ImageType::Pointer loadNRRD( const std::string & filePath )

function extractOrganSegmentation

cpp static ImageType::Pointer extractOrganSegmentation( ImageType::Pointer inputImage, int label )

function saveNRRD

cpp static void saveNRRD( ImageType::Pointer image, const std::string & outputPath )

function isOrganPresent

cpp static bool isOrganPresent( ImageType::Pointer image )

function processSegmentation

cpp static void processSegmentation( const std::string & segmentationPath, const std::map< int, std::string > & organLabels, const std::string & outputDir, const std::string & sampleId, std::vector< std::string > & organSegmentationPaths )


Updated on 2026-03-31 at 16:02:09 +0000