{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "intensity_images",
                "mask_image"
            ],
            "type": "object",
            "properties": {
                "prior_probability_images": {
                    "type": "object",
                    "properties": {}
                },
                "intensity_images": {
                    "type": "object",
                    "properties": {}
                },
                "mask_image": {
                    "type": "object",
                    "properties": {}
                },
                "out_classified_image_name": {
                    "type": "object",
                    "properties": {}
                }
            }
        },
        "config": {
            "required": [
                "output_posteriors_name_template",
                "num_threads",
                "initialization",
                "use_random_seed",
                "number_of_tissue_classes",
                "dimension"
            ],
            "type": "object",
            "properties": {
                "output_posteriors_name_template": {
                    "default": "POSTERIOR_%02d.nii.gz",
                    "type": "string"
                },
                "num_threads": {
                    "default": 1,
                    "type": "integer"
                },
                "args": {
                    "type": "string"
                },
                "mrf_smoothing_factor": {
                    "type": "number"
                },
                "use_random_seed": {
                    "default": true,
                    "type": "boolean"
                },
                "convergence_threshold": {
                    "type": "number"
                },
                "prior_probability_threshold": {
                    "type": "number"
                },
                "likelihood_model": {
                    "type": "string"
                },
                "dimension": {
                    "default": 3,
                    "enum": [
                        3,
                        2,
                        4
                    ],
                    "type": "integer"
                },
                "number_of_tissue_classes": {
                    "type": "integer"
                },
                "n_iterations": {
                    "type": "integer"
                },
                "icm_use_synchronous_update": {
                    "type": "boolean"
                },
                "maximum_number_of_icm_terations": {
                    "type": "integer"
                },
                "posterior_formulation": {
                    "type": "string"
                },
                "save_posteriors": {
                    "type": "boolean"
                },
                "initialization": {
                    "default": "KMeans",
                    "enum": [
                        "Random",
                        "Otsu",
                        "KMeans",
                        "PriorProbabilityImages",
                        "PriorLabelImage"
                    ],
                    "type": "string"
                },
                "prior_weighting": {
                    "type": "number"
                },
                "use_mixture_model_proportions": {
                    "type": "boolean"
                }
            }
        }
    },
    "title": "Invocation manifest for Atropos"
}