monai.deploy.operators.PublisherOperator

class monai.deploy.operators.PublisherOperator(*args, input_folder, output_folder, **kwargs)[source]

Bases: holoscan.core.Operator

This Operator publishes the input and segment mask images for the 3rd party Render Server.

It takes as input the folder path to the input and mask images, in nii, nii.gz, or mhd, generates the render config file and the meta data file, then save all in the publish folder of the app.

Class to write DICOM Encapsulated PDF Instance with PDF bytes in memory or in a file.

Parameters
  • input_folder (str or Path) – The folder to read the input and segment mask files.

  • output_folder (str or Path) – The folder to save the published files.

Methods

__init__(*args, input_folder, output_folder, …)

Class to write DICOM Encapsulated PDF Instance with PDF bytes in memory or in a file.

add_arg(*args, **kwargs)

Overloaded function.

compute(op_input, op_output, context)

Default implementation of compute

initialize()

Default implementation of initialize

setup(spec)

Default implementation of setup method.

start()

Default implementation of start

stop()

Default implementation of stop

Attributes

DEFAULT_INPUT_FOLDER

DEFAULT_OUTPUT_FOLDER

args

The list of arguments associated with the component.

conditions

Conditions associated with the operator.

description

YAML formatted string describing the operator.

fragment

The fragment that the operator belongs to.

id

The identifier of the component.

name

The name of the operator.

operator_type

The operator type.

resources

Resources associated with the operator.

spec

class OperatorType(self: holoscan.core._core.Operator.OperatorType, value: int) None

Bases: pybind11_builtins.pybind11_object

Members:

NATIVE

GXF

property name
__init__(*args, input_folder, output_folder, **kwargs)[source]

Class to write DICOM Encapsulated PDF Instance with PDF bytes in memory or in a file.

Parameters
  • input_folder (str or Path) – The folder to read the input and segment mask files.

  • output_folder (str or Path) – The folder to save the published files.

add_arg(*args, **kwargs)

Overloaded function.

  1. add_arg(self: holoscan.core._core.Operator, arg: holoscan.core._core.Arg) -> None

Add an argument to the component.

  1. add_arg(self: holoscan.core._core.Operator, arg: holoscan.core._core.ArgList) -> None

Add a list of arguments to the component.

  1. add_arg(self: holoscan.core._core.Operator, **kwargs) -> None

Add arguments to the component via Python kwargs.

  1. add_arg(self: holoscan.core._core.Operator, arg: holoscan.core._core.Condition) -> None

  2. add_arg(self: holoscan.core._core.Operator, arg: holoscan.core._core.Resource) -> None

Add a condition or resource to the Operator.

This can be used to add a condition or resource to an operator after it has already been constructed.

argholoscan.core.Condition or holoscan.core.Resource

The condition or resource to add.

property args

The list of arguments associated with the component.

arglist : holoscan.core.ArgList

compute(op_input, op_output, context)[source]

Default implementation of compute

property conditions

Conditions associated with the operator.

property description

YAML formatted string describing the operator.

property fragment

The fragment that the operator belongs to.

name : holoscan.core.Fragment

property id

The identifier of the component.

The identifier is initially set to -1, and will become a valid value when the component is initialized.

With the default executor (holoscan.gxf.GXFExecutor), the identifier is set to the GXF component ID.

id : int

initialize()

Default implementation of initialize

property name

The name of the operator.

name : str

property operator_type

The operator type.

holoscan.core.Operator.OperatorType enum representing the type of the operator. The two types currently implemented are native and GXF.

property resources

Resources associated with the operator.

setup(spec)

Default implementation of setup method.

start()

Default implementation of start

stop()

Default implementation of stop