Skip to content

monailabel::MonaiLabelJob

Inherits from shapeworks::Job, QObject

Public Slots

Name
void onUploadSampleClicked()
void onRunSegmentationClicked()
void onSubmitLabelClicked()

Public Signals

Name
void triggerUpdateView()
void triggerClientInitialized(bool success)
void triggerUploadSampleCompleted()
void triggerSegmentationCompleted()
void triggerSubmitLabelCompleted()

Public Functions

Name
MonaiLabelJob(QSharedPointer< Session > session, const std::string & server_url, const std::string & client_id, const std::string & strategy, const std::string & model_type)
~MonaiLabelJob()
void setServer(const std::string & server_url)
void setModelType(const std::string & model_type)
const std::string & getServer()
void setClientId(const std::string & client_id ="")
const std::string & getClientId()
void initializeClient()
std::shared_ptr< py::object > getClient() const
py::dict getInfo()
std::string getModelName(std::string modelType)
std::vector< std::string > getModelNames(const std::string & model_type)
std::string getSessionId()
py::dict getParamsFromConfig(std::string section, std::string name)
py::dict nextSample(std::string strategy, py::dict params)
py::tuple infer(std::string model, std::string image_in, py::dict params, std::string label_in, std::string file, std::string session_id)
py::dict saveLabel(std::string image_in, std::string label_in, py::dict params)
py::dict uploadImage(std::string image_in, std::string image_id)
void updateShapes()
void runSegmentationModel()
virtual void run() override
run the job
virtual QString name() override
get the name of the job
void python_message(std::string str)
void setCurrentSampleNumber(int n)

Public Attributes

Name
const std::string MONAI_RESULT_EXTENSION
const std::string MONAI_RESULT_DTYPE

Additional inherited members

Public Signals inherited from shapeworks::Job

Name
void progress(double , QString ="")
void finished()

Public Functions inherited from shapeworks::Job

Name
Job()
virtual ~Job()
void execute()
execute the job with profiling instrumentation
virtual QString get_completion_message()
get a message to display when the job is complete
virtual QString get_abort_message()
get a message to display when the job is aborted
void start_timer()
start the timer
qint64 timer_elapsed()
how much time has elapsed since the timer was started
void set_complete(bool complete)
set the job as complete
bool is_complete() const
is the job complete?
void abort()
abort the job
bool is_aborted() const
was the job aborted?
void set_quiet_mode(bool quiet)
set to quiet mode (no progress messages)
bool get_quiet_mode()
get quiet mode

Public Slots Documentation

slot onUploadSampleClicked

cpp void onUploadSampleClicked()

slot onRunSegmentationClicked

cpp void onRunSegmentationClicked()

slot onSubmitLabelClicked

cpp void onSubmitLabelClicked()

Public Signals Documentation

signal triggerUpdateView

cpp void triggerUpdateView()

signal triggerClientInitialized

cpp void triggerClientInitialized( bool success )

signal triggerUploadSampleCompleted

cpp void triggerUploadSampleCompleted()

signal triggerSegmentationCompleted

cpp void triggerSegmentationCompleted()

signal triggerSubmitLabelCompleted

cpp void triggerSubmitLabelCompleted()

Public Functions Documentation

function MonaiLabelJob

cpp MonaiLabelJob( QSharedPointer< Session > session, const std::string & server_url, const std::string & client_id, const std::string & strategy, const std::string & model_type )

function ~MonaiLabelJob

cpp ~MonaiLabelJob()

function setServer

cpp void setServer( const std::string & server_url )

function setModelType

cpp void setModelType( const std::string & model_type )

function getServer

cpp inline const std::string & getServer()

function setClientId

cpp void setClientId( const std::string & client_id ="" )

function getClientId

cpp inline const std::string & getClientId()

function initializeClient

cpp void initializeClient()

function getClient

cpp inline std::shared_ptr< py::object > getClient() const

function getInfo

cpp py::dict getInfo()

function getModelName

cpp std::string getModelName( std::string modelType )

function getModelNames

cpp std::vector< std::string > getModelNames( const std::string & model_type )

function getSessionId

cpp std::string getSessionId()

function getParamsFromConfig

cpp py::dict getParamsFromConfig( std::string section, std::string name )

function nextSample

cpp py::dict nextSample( std::string strategy, py::dict params )

function infer

cpp py::tuple infer( std::string model, std::string image_in, py::dict params, std::string label_in, std::string file, std::string session_id )

function saveLabel

cpp py::dict saveLabel( std::string image_in, std::string label_in, py::dict params )

function uploadImage

cpp py::dict uploadImage( std::string image_in, std::string image_id )

function updateShapes

cpp void updateShapes()

function runSegmentationModel

cpp void runSegmentationModel()

function run

cpp virtual void run() override

run the job

Reimplements: shapeworks::Job::run

function name

cpp virtual QString name() override

get the name of the job

Reimplements: shapeworks::Job::name

function python_message

cpp void python_message( std::string str )

function setCurrentSampleNumber

cpp void setCurrentSampleNumber( int n )

Public Attributes Documentation

variable MONAI_RESULT_EXTENSION

cpp static const std::string MONAI_RESULT_EXTENSION;

variable MONAI_RESULT_DTYPE

cpp static const std::string MONAI_RESULT_DTYPE;


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