Exemplo n.º 1
0
def test_VBRAINSDemonWarp_outputs():
    output_map = dict(outputVolume=dict(), outputCheckerboardVolume=dict(), outputDisplacementFieldVolume=dict())
    outputs = VBRAINSDemonWarp.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemplo n.º 2
0
def test_VBRAINSDemonWarp_outputs():
    output_map = dict(outputCheckerboardVolume=dict(),
    outputDisplacementFieldVolume=dict(),
    outputVolume=dict(),
    )
    outputs = VBRAINSDemonWarp.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemplo n.º 3
0
def test_VBRAINSDemonWarp_inputs():
    input_map = dict(
        ignore_exception=dict(nohash=True, usedefault=True),
        outputPixelType=dict(argstr="--outputPixelType %s"),
        medianFilterSize=dict(argstr="--medianFilterSize %s", sep=","),
        backgroundFillValue=dict(argstr="--backgroundFillValue %d"),
        upperThresholdForBOBF=dict(argstr="--upperThresholdForBOBF %d"),
        promptUser=dict(argstr="--promptUser "),
        smoothDisplacementFieldSigma=dict(argstr="--smoothDisplacementFieldSigma %f"),
        histogramMatch=dict(argstr="--histogramMatch "),
        fixedVolume=dict(argstr="--fixedVolume %s..."),
        initializeWithDisplacementField=dict(argstr="--initializeWithDisplacementField %s"),
        numberOfBCHApproximationTerms=dict(argstr="--numberOfBCHApproximationTerms %d"),
        inputPixelType=dict(argstr="--inputPixelType %s"),
        minimumMovingPyramid=dict(argstr="--minimumMovingPyramid %s", sep=","),
        registrationFilterType=dict(argstr="--registrationFilterType %s"),
        upFieldSmoothing=dict(argstr="--upFieldSmoothing %f"),
        initializeWithTransform=dict(argstr="--initializeWithTransform %s"),
        numberOfHistogramBins=dict(argstr="--numberOfHistogramBins %d"),
        minimumFixedPyramid=dict(argstr="--minimumFixedPyramid %s", sep=","),
        outputNormalized=dict(argstr="--outputNormalized "),
        outputVolume=dict(hash_files=False, argstr="--outputVolume %s"),
        outputCheckerboardVolume=dict(hash_files=False, argstr="--outputCheckerboardVolume %s"),
        movingVolume=dict(argstr="--movingVolume %s..."),
        max_step_length=dict(argstr="--max_step_length %f"),
        fixedBinaryVolume=dict(argstr="--fixedBinaryVolume %s"),
        args=dict(argstr="%s"),
        weightFactors=dict(argstr="--weightFactors %s", sep=","),
        numberOfThreads=dict(argstr="--numberOfThreads %d"),
        movingBinaryVolume=dict(argstr="--movingBinaryVolume %s"),
        neighborhoodForBOBF=dict(argstr="--neighborhoodForBOBF %s", sep=","),
        outputDisplacementFieldVolume=dict(hash_files=False, argstr="--outputDisplacementFieldVolume %s"),
        makeBOBF=dict(argstr="--makeBOBF "),
        checkerboardPatternSubdivisions=dict(argstr="--checkerboardPatternSubdivisions %s", sep=","),
        seedForBOBF=dict(argstr="--seedForBOBF %s", sep=","),
        outputDisplacementFieldPrefix=dict(argstr="--outputDisplacementFieldPrefix %s"),
        numberOfPyramidLevels=dict(argstr="--numberOfPyramidLevels %d"),
        gui=dict(argstr="--gui "),
        outputDebug=dict(argstr="--outputDebug "),
        interpolationMode=dict(argstr="--interpolationMode %s"),
        use_vanilla_dem=dict(argstr="--use_vanilla_dem "),
        terminal_output=dict(mandatory=True, nohash=True),
        environ=dict(nohash=True, usedefault=True),
        lowerThresholdForBOBF=dict(argstr="--lowerThresholdForBOBF %d"),
        numberOfMatchPoints=dict(argstr="--numberOfMatchPoints %d"),
        gradient_type=dict(argstr="--gradient_type %s"),
        arrayOfPyramidLevelIterations=dict(argstr="--arrayOfPyramidLevelIterations %s", sep=","),
    )
    inputs = VBRAINSDemonWarp.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Exemplo n.º 4
0
def test_VBRAINSDemonWarp_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    arrayOfPyramidLevelIterations=dict(argstr='--arrayOfPyramidLevelIterations %s',
    sep=',',
    ),
    backgroundFillValue=dict(argstr='--backgroundFillValue %d',
    ),
    checkerboardPatternSubdivisions=dict(argstr='--checkerboardPatternSubdivisions %s',
    sep=',',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    fixedBinaryVolume=dict(argstr='--fixedBinaryVolume %s',
    ),
    fixedVolume=dict(argstr='--fixedVolume %s...',
    ),
    gradient_type=dict(argstr='--gradient_type %s',
    ),
    gui=dict(argstr='--gui ',
    ),
    histogramMatch=dict(argstr='--histogramMatch ',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    initializeWithDisplacementField=dict(argstr='--initializeWithDisplacementField %s',
    ),
    initializeWithTransform=dict(argstr='--initializeWithTransform %s',
    ),
    inputPixelType=dict(argstr='--inputPixelType %s',
    ),
    interpolationMode=dict(argstr='--interpolationMode %s',
    ),
    lowerThresholdForBOBF=dict(argstr='--lowerThresholdForBOBF %d',
    ),
    makeBOBF=dict(argstr='--makeBOBF ',
    ),
    max_step_length=dict(argstr='--max_step_length %f',
    ),
    medianFilterSize=dict(argstr='--medianFilterSize %s',
    sep=',',
    ),
    minimumFixedPyramid=dict(argstr='--minimumFixedPyramid %s',
    sep=',',
    ),
    minimumMovingPyramid=dict(argstr='--minimumMovingPyramid %s',
    sep=',',
    ),
    movingBinaryVolume=dict(argstr='--movingBinaryVolume %s',
    ),
    movingVolume=dict(argstr='--movingVolume %s...',
    ),
    neighborhoodForBOBF=dict(argstr='--neighborhoodForBOBF %s',
    sep=',',
    ),
    numberOfBCHApproximationTerms=dict(argstr='--numberOfBCHApproximationTerms %d',
    ),
    numberOfHistogramBins=dict(argstr='--numberOfHistogramBins %d',
    ),
    numberOfMatchPoints=dict(argstr='--numberOfMatchPoints %d',
    ),
    numberOfPyramidLevels=dict(argstr='--numberOfPyramidLevels %d',
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    outputCheckerboardVolume=dict(argstr='--outputCheckerboardVolume %s',
    hash_files=False,
    ),
    outputDebug=dict(argstr='--outputDebug ',
    ),
    outputDisplacementFieldPrefix=dict(argstr='--outputDisplacementFieldPrefix %s',
    ),
    outputDisplacementFieldVolume=dict(argstr='--outputDisplacementFieldVolume %s',
    hash_files=False,
    ),
    outputNormalized=dict(argstr='--outputNormalized ',
    ),
    outputPixelType=dict(argstr='--outputPixelType %s',
    ),
    outputVolume=dict(argstr='--outputVolume %s',
    hash_files=False,
    ),
    promptUser=dict(argstr='--promptUser ',
    ),
    registrationFilterType=dict(argstr='--registrationFilterType %s',
    ),
    seedForBOBF=dict(argstr='--seedForBOBF %s',
    sep=',',
    ),
    smoothDisplacementFieldSigma=dict(argstr='--smoothDisplacementFieldSigma %f',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    upFieldSmoothing=dict(argstr='--upFieldSmoothing %f',
    ),
    upperThresholdForBOBF=dict(argstr='--upperThresholdForBOBF %d',
    ),
    use_vanilla_dem=dict(argstr='--use_vanilla_dem ',
    ),
    weightFactors=dict(argstr='--weightFactors %s',
    sep=',',
    ),
    )
    inputs = VBRAINSDemonWarp.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value