Skip to content

Compiler error concerning ITK_THREAD_RETURN_VALUE #20

Closed

Description

@jhlegarreta

There seems to be a compiler error involving the ITK_THREAD_RETURN_VALUE define:

Error C2065 'ITK_THREAD_RETURN_VALUE': undeclared identifier itkCannyEdgeDetectionImageFilter2  
\lesionsizingtoolkit\include\itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx 305

@dzenanz could you please cast some light on this?

Also missing to use the ProgressTransformer class instead of ProgressReporter.

Activity

  1. dzenanz commented on Oct 2, 2018

    @dzenanz
    Member

    LesionSizingToolkit has its own version of Canny filter. This filter has not been updated to use the new threading model. I don't know what the difference was (if any) when compared to normal Canny filter. Anyway, this filter will have to be rewritten to inherit from the original Canny, or updated in a similar way to original Canny. Canny filter underwent all the standard refactoring, plus this specific simplification.

  2. jhlegarreta commented on Oct 3, 2018

    @jhlegarreta
    MemberAuthor

    You are right, the module would need some work to update it, adapt to the changes since 6 years now, avoid duplicates, and eventually get its way into the main toolkit.

    At this time, I'll just do the minimal changes to make it build against ITK v5. I'll add a WIP branch with CI, and once that is completed, we will be a in a better position to focus on further improvements.

  3. hjmjohnson commented on Oct 8, 2026

    @hjmjohnson
    Member

    The compile error is gone: itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx now returns ITK_THREAD_RETURN_DEFAULT_VALUE, and the module builds and passes its tests against ITK 5.4.6 and ITK 6 main on Linux, macOS, and Windows in #61. The filter still uses the pre-ITK5 threading model (ITK_THREAD_RETURN_TYPE callbacks and ProgressReporter instead of ProgressTransformer); that modernization is tracked under the refactor issue #22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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