Giter VIP home page Giter VIP logo

Comments (10)

blowekamp avatar blowekamp commented on September 27, 2024 1

That just about did it! Thanks!
I just had to tweak the capture.

from itkstreamingsinc.

romangrothausmann avatar romangrothausmann commented on September 27, 2024 1

Just stumbled op on this. It is not clear to me what functionality is missing in ITK-5 since the integration of itkStreamingSinc with InsightSoftwareConsortium/ITK#855.

from itkstreamingsinc.

jcfr avatar jcfr commented on September 27, 2024 1

Good point, in that case adding a clarification to the README should be sufficient. Is it something you could help with ?

from itkstreamingsinc.

blowekamp avatar blowekamp commented on September 27, 2024 1

Two things missing from ITKv5.

  • The BoundingBox Filter, but that is trivial replaces by using a binary threshold filter and then the streaming label statistics image filter now in ITK.

  • The MPI streaming filter is not in ITKv5. It's not been used for a bit. This filter likely should be updated and moved into it's own proper ITK remote module. This filter offers a very unique way to do things in ITK which may be of interest to people as the basis for future work.

from itkstreamingsinc.

blowekamp avatar blowekamp commented on September 27, 2024

This module is quite integrated into the ITK pipeline. It should be worth updating the module.

from itkstreamingsinc.

blowekamp avatar blowekamp commented on September 27, 2024

The ImageSinc base class filter uses the deprecated threading components to multi-thread on the input region of an image filter. It's not clear how to use the new components to do a similar thing.
@dzenanz

from itkstreamingsinc.

dzenanz avatar dzenanz commented on September 27, 2024

StreamedGenerateData and ThreaderCallback could be replaced by this definition:

template <class TInputImage>
void
ImageSinc<TInputImage>
::StreamedGenerateData( unsigned int itkNotUsed(inputRequestedRegionNumber) )
{
  this->GetMultiThreader()->SetNumberOfThreads( this->GetNumberOfThreads() );
  const ThreadIdType  total = this->GetRegionSplitter()->GetNumberOfSplits( m_CurrentInputRegion,  this->GetNumberOfThreads() );
  this->GetMultiThreader()->ParallelizeArray(
    0,
    total,
    [&m_CurrentInputRegion](SizeValueType threadId)
    {
        InputImageRegionType splitRegion = m_CurrentInputRegion;
        this->GetRegionSplitter()->GetSplit( threadId, total, splitRegion );
        this->ThreadedStreamedGenerateData(splitRegion, threadId);
    },
    nullptr); // \Modules\Core\Common\include\itkProgressTransformer.h would need to be used to properly report progress here
}

I have not tried to compile this.

from itkstreamingsinc.

romangrothausmann avatar romangrothausmann commented on September 27, 2024

Just noticed that this issue was started before InsightSoftwareConsortium/ITK#855 started.
@jcfr @blowekamp issue ready to be closed?

from itkstreamingsinc.

jcfr avatar jcfr commented on September 27, 2024

Indeed, it can be closed. Thanks for pointing this out.

@blowekamp Could you update the readme and archive the project ?

from itkstreamingsinc.

romangrothausmann avatar romangrothausmann commented on September 27, 2024

archive the project

As long as ITK-4 is still widely in use, I think the project should not (yet) be archived.

from itkstreamingsinc.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.