Ejemplo n.º 1
0
def test_CannySegmentationLevelSetImageFilter_inputs():
    input_map = dict(
        advectionWeight=dict(argstr='--advectionWeight %f', ),
        args=dict(argstr='%s', ),
        cannyThreshold=dict(argstr='--cannyThreshold %f', ),
        cannyVariance=dict(argstr='--cannyVariance %f', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        initialModel=dict(argstr='--initialModel %s', ),
        initialModelIsovalue=dict(argstr='--initialModelIsovalue %f', ),
        inputVolume=dict(argstr='--inputVolume %s', ),
        maxIterations=dict(argstr='--maxIterations %d', ),
        outputSpeedVolume=dict(
            argstr='--outputSpeedVolume %s',
            hash_files=False,
        ),
        outputVolume=dict(
            argstr='--outputVolume %s',
            hash_files=False,
        ),
        terminal_output=dict(nohash=True, ),
    )
    inputs = CannySegmentationLevelSetImageFilter.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_CannySegmentationLevelSetImageFilter_outputs():
    output_map = dict(outputSpeedVolume=dict(),
    outputVolume=dict(),
    )
    outputs = CannySegmentationLevelSetImageFilter.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Ejemplo n.º 3
0
def test_CannySegmentationLevelSetImageFilter_outputs():
    output_map = dict(
        outputSpeedVolume=dict(),
        outputVolume=dict(),
    )
    outputs = CannySegmentationLevelSetImageFilter.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_CannySegmentationLevelSetImageFilter_inputs():
    input_map = dict(advectionWeight=dict(argstr='--advectionWeight %f',
    ),
    args=dict(argstr='%s',
    ),
    cannyThreshold=dict(argstr='--cannyThreshold %f',
    ),
    cannyVariance=dict(argstr='--cannyVariance %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    initialModel=dict(argstr='--initialModel %s',
    ),
    initialModelIsovalue=dict(argstr='--initialModelIsovalue %f',
    ),
    inputVolume=dict(argstr='--inputVolume %s',
    ),
    maxIterations=dict(argstr='--maxIterations %d',
    ),
    outputSpeedVolume=dict(argstr='--outputSpeedVolume %s',
    hash_files=False,
    ),
    outputVolume=dict(argstr='--outputVolume %s',
    hash_files=False,
    ),
    terminal_output=dict(nohash=True,
    ),
    )
    inputs = CannySegmentationLevelSetImageFilter.input_spec()

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