PERF: Reduce verbosity of itk::GaussianOperator warning#3423
Conversation
`itk::GaussianOperator` can be set with a `MaximumKernelWidth` parameter such that a kernel that would otherwise overflow this size is cropped to the maximum width. Cropping to the set maximum width happens frequently in cases such as Gaussian blurring for multiscale pyramid generation and is expected behavior, but the previous warning message makes it seem like a failure case. This commit reduces the verbosity of the message from a warning to a debug printout so that developers can get insights into kernel cropping when needed, but are not alarmed by default warning printouts.
|
In case it is related, ... I am now getting an error message in the |
|
It certainly appears related. Interesting that this did not show up in CI. @Leengit could you please share details on your build platform? |
|
Linux 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux |
|
Thank you, on review I am also able to see failures in CDash Expected Nightly Builds. My guess is that this means I will open an issue to track. If we can't use debug printouts here I would be in favor of removing the warning message entirely. It could be useful in certain scenarios where the user is unaware of a default truncation parameter, but in general it is simply informing the user that execution is proceeding according to design. |
|
Perhaps a quick, sloppy fix to get the |
itk::GaussianOperatorcan be set with aMaximumKernelWidthparametersuch that a kernel that would otherwise overflow this size is cropped to
the maximum width. Cropping to the set maximum width happens frequently
in cases such as Gaussian blurring for multiscale pyramid generation and
is expected behavior, but the previous warning message makes it seem
like a failure case. This commit reduces the verbosity of the message
from a warning to a debug printout so that developers can get insights
into kernel cropping when needed, but are not alarmed by default warning
printouts.
Previous behavior: Warning whenever Gaussian kernel is correctly truncated to user specifications.
New behavior: No printout unless explicitly enabled.
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.