GithubHelp home page GithubHelp logo

krm15 / acme Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 225 KB

This repository contains open-source C++ code for reconstructing membranes from time-lapse confocal/2-photon image data. Please refer to the webpage below for detailed instructions, precompiled binaries, and sample data for testing the code.

Home Page: https://wiki.med.harvard.edu/SysBio/Megason/ACME

License: BSD 3-Clause "New" or "Revised" License

Python 1.90% C++ 96.85% CMake 1.25%

acme's People

Contributors

krm15 avatar smegason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acme's Issues

ThreadIdType’ has not been declared

In file included from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/Examples/MembraneOrientationBasedHessianCalculator.cxx:45:0:
/lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkMembraneScaleSelectionImageFilter.h: At global scope:
/lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkMembraneScaleSelectionImageFilter.h:120:37: error: ‘ThreadIdType’ has not been declared
ThreadIdType threadId);
^
In file included from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkMembraneScaleSelectionImageFilter.h:137:0,
from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/Examples/MembraneOrientationBasedHessianCalculator.cxx:45:
/lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkMembraneScaleSelectionImageFilter.txx:106:56: error: ‘ThreadIdType’ has not been declared
::ThreadedGenerateData(const RegionType& windowRegion, ThreadIdType threadId)
^
In file included from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/Examples/MembraneOrientationBasedHessianCalculator.cxx:52:0:
/lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkStructMeasureImageFilter.h:154:37: error: ‘ThreadIdType’ has not been declared
ThreadIdType threadId);
^
In file included from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkStructMeasureImageFilter.h:187:0,
from /lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/Examples/MembraneOrientationBasedHessianCalculator.cxx:52:
/lustre/home/acct-bmelgn/bmelgn-5/panweihao/ACME/Code/PlanarityFilter/itkStructMeasureImageFilter.txx:223:67: error: ‘ThreadIdType’ has not been declared
::ThreadedGenerateData(const OutputImageRegionType& windowRegion, ThreadIdType threadId)
^
make[2]: *** [Examples/CMakeFiles/membraneOrientationBasedHessianCalculator.dir/MembraneOrientationBasedHessianCalculator.o] Error 1
make[1]: *** [Examples/CMakeFiles/membraneOrientationBasedHessianCalculator.dir/all] Error 2
make: *** [all] Error 2

Work on 2D images

It seems all the code is written for 3d images. Is there any way that I can apply the tensor voting code to 2d images?

the examples aren't working

The first one (S2.3 Running the software on a 2D intersecting circle voting example) generates black images ... and the second one (S2.4 Running the code on somite data) generates a black image on the step 11 (Apply the planarity detection filter - The source code for this filter is located at MR-Source/Examples/MultiscalePlateMeasureImageFilter.cxx) here is the code that isn't working for me ...

// Declare the type of multiscale vesselness filter
typedef itk::MultiscaleStructMeasureImageFilter<
InputImageType, OutputImageType> MultiscalePlateFilterType;

// Create a vesselness Filter
MultiscalePlateFilterType::Pointer MultiscalePlateFilter =
MultiscalePlateFilterType::New();
MultiscalePlateFilter->SetInput( reader->GetOutput() );
MultiscalePlateFilter->SetObjectType( 0 );
MultiscalePlateFilter->SetSigmaMin( atof(argv[4]) );
MultiscalePlateFilter->SetSigmaMax( atof(argv[4]) );
MultiscalePlateFilter->SetNumberOfSigmaSteps( 1 );

try
{
MultiscalePlateFilter->Update();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "Exception caught: " << err << std::endl;
return EXIT_FAILURE;
}

std::cout << "Writing out the enhanced image to " << argv[2]
<< std::endl;

ImageWriterType::Pointer writer = ImageWriterType::New();
writer->SetFileName( argv[2] );
writer->SetInput ( MultiscalePlateFilter->GetOutput() );

try
{
writer->Update();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "Exception caught: " << err << std::endl;
return EXIT_FAILURE;
}

reader->GetOutput() contains the preprocessed image and its good i already verified it. The problem is when i do "writer->SetInput ( MultiscalePlateFilter->GetOutput() );" ... that is a black image ... whats the problem?

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.