2017-12-11 1 views
0

ImageRegistrationMethod.Execute() 접근 방식을 사용하여 simpleITK (python)로 이미지 등록을 수행하고 있습니다. 이미지 등록 프로세스에 대한 통계를 수집하는 것이 목적입니다. 예를 들어, 성공한시기와 실패한시기를 확인하면 등록 성공으로 이어지지 않는 다른 초기 변형을 포함한 ImageRegistrationMethod 인스턴스를 초기화 할 수 있습니다. 실행시에 simpleITK가 예외를 throw하는 경우가 있는데, 나는 그것을 잡을 수 있기 때문에 괜찮습니다. 그러나 때로는이simpleITK (python)로 등록하는 중 경고를받습니다.

WARNING: In /mnt/emptyplaceholder/projects/elastix/build/ITK-prefix/include/ITK-4.12/itkObjectToObjectMetric.hxx, line 529 
Self (0x3a0af70): No valid points were found during metric evaluation. For image metrics, verify that the images overlap appropriately. For instance, you can align the image centers by translation. For point-set metrics, verify that the fixed points, once transformed into the virtual domain space, actually lie within the virtual domain. 

또는이

WARNING: In /mnt/emptyplaceholder/projects/elastix/build/ITK-prefix/include/ITK-4.12/itkCorrelationImageToImageMetricv4HelperThreader.hxx, line 85 
CorrelationImageToImageMetricv4HelperThreader (0x3a01370): collected only zero points 

하지만 등록 진행과 같은 표준 오류에 경고를 얻을.

질문은 (경고와 함께) 등록이 완전히 원활하게 진행될 때 어떻게 (파이썬에서) 인스턴스를 구별 할 수 있습니까? 간단하고 어리석은 옵션은 stderr를 모니터링하는 것입니다. 그러나 이러한 사건을보고 할 수있는 ITK 기능이있을 수 있습니까?

답변

1

ITK의 discourse 포럼에서이 질문을하는 것이 가장 좋습니다. 그 다음에 StackOverflow에 itk 태그보다 많은 ITK 전문가가 나옵니다.

+0

감사합니다. 내가 sitk을 사용하기 시작한 이래로 모든 사람들이 어디에 있는지 궁금해하고있었습니다. –

관련 문제