Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

A lot of console output even after turning it off #491

@ArturRuppel

Description

@ArturRuppel

Hello,

thanks for this great tool! I have a minor issue with not being able to turn off the console outputs during registration. The function that is supposed to suppress them doesn't seem to be working for me.

Here my code snippet:

` moving_image_sitk = sitk.GetImageFromArray(moving_image)
fixed_image_sitk = sitk.GetImageFromArray(fixed_image)

    parameterMap = sitk.GetDefaultParameterMap('translation')
    parameterMap['Metric'] = ["AdvancedNormalizedCorrelation"]
    parameterMap['WriteResultImage'] = ["false"]
    parameterMap['NumberOfResolutions'] = ['6']

    elastixImageFilter = sitk.ElastixImageFilter()
    elastixImageFilter.LogToConsoleOff()
    elastixImageFilter.SetFixedImage(fixed_image_sitk)
    elastixImageFilter.SetMovingImage(moving_image_sitk)
    elastixImageFilter.SetParameterMap(parameterMap)
    elastixImageFilter.Execute()`

Thanks in advance, hope that is enough information!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions