Git Product home page Git Product logo

rorpo's Introduction

libRORPO

Welcome to libRORPO, a mathematical morphology library for Path Operators. RORPO is a morphological vesselness operator, meant to detect vessels and other tubular structures in medical images.

This library comes with the following optional bindings :

  • A python interface using pybind11.
  • A 3DSlicer interface to use RORPO in the interactive 3D environment of Slicer.

WARNING : All images are expected to have an isotropic image resolution (cubic voxels). The software will produce a result if this not the case but the interpretation of this result will be questionable.

File PO.hpp

PO_3D: Compute the Path Opening operator in one orientation. The 7 orientations are defined in the function RPO.

template<typename T, typename MaskType>
void PO_3D(const Image3D<T> &image, int L, std::vector<IndexType> &index_image, std::vector<int> &orientations, Image3D<T> &Output, std::vector<bool> b)
  • image : Input image
  • L : Path length
  • index_image : sorted index of the image. Result of the sort_image_value function of sorting.hpp
  • orientations : defined the orientation used. Choices are [0,0,1] ; [1,0,0] ; [0,1,0] ; [1,1,1] ; [-1,1,1] ; [1,1,-1] ; [-1,1,-1]
  • Output : Result of the Path Opening

File RPO.hpp

RPO : Compute the 7 orientations of the Robust Path Opening and return them.

template<typename T, typename MaskType>
std::array<std::vector<int>, 7> RPO(const Image3D<T> &image, int L, Image3D<T> &RPO1, Image3D<T> &RPO2, Image3D<T> &RPO3, Image3D<T> &RPO4,
                                    Image3D<T> &RPO5, Image3D<T> &RPO6, Image3D<T> &RPO7, int nb_core, int dilationSize, Image3D<MaskType> &Mask) {
  • image : input image
  • L : Path length
  • RPO1 : resulting Robust Path Opening in the first orientation.
  • RPO2 : resulting Robust Path Opening in the second orientation
  • RPO3 : resulting Robust Path Opening in the third orientation
  • RPO4 : resulting Robust Path Opening in the fourth orientation
  • RPO5 : resulting Robust Path Opening in the fifth orientation
  • RPO6 : resulting Robust Path Opening in the sixth orientation
  • RPO7 : resulting Robust Path Opening in the seventh orientation
  • nb_core : number of cores used to compute the Path Opening (choose between 1 and 7)

File RORPO.hpp

RORPO: Compute the Ranking Orientations Responses of Path Operators

template<typename T, typename MaskType>
Image3D<T> RORPO(const Image3D<T> &image, int L, int nbCores, int dilationSize, Image3D<MaskType> &mask) {
  • image: input image
  • L: Path length
  • nb_core: number of cores used to compute the Path Opening (choose between 1 and 7)
  • dilationSize: Size of the dilation for the noise robustness step.
  • mask: optional mask image

File RORPO_multiscale.hpp

RORPO_multiscale: Compute the multiscale RORPO

template<typename PixelType, typename MaskType>
Image3D<PixelType> RORPO_multiscale(const Image3D<PixelType> &I, const std::vector<int>& S_list, int nb_core, int dilationSize, int debug_flag, Image3D<MaskType> &Mask)
  • I: input image
  • S_list : vector containing the different path length (scales)
  • nb_core : number of cores used to compute the Path Opening (choose between 1 and 7)
  • debug_flag : 1 (activated) or 0 (desactivated)
  • Mask : optional mask image

rorpo's People

Contributors

aancel avatar akrah avatar gael-2-francony avatar hugues-talbot avatar kayarre avatar ngocphuonganhduong avatar omerveille avatar rduarte-88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rorpo's Issues

Issues with installation on Windows 10

Hi team,

I was really looking forward to running this algorithm on my data since it looks really promising. However, I'm running into issues while compiling the libraries according to the instructions given in https://path-openings.github.io/RORPO/. Could you point out the version used for the various libraries/software, specifically:

  • ITK
  • 3DSLICER
  • OPENMP
  • Python
  • Visual Studio

New pull request for the LONGLONG issue

I've been stuck with the LONGLONG types in ITK that are not always supported, so I propose a conditional compilation DEFINE to deal with this.

These are type we should avoid using anyway, I dont think there exist sensors that deliver 64-bit integer data. That would be quite a few photons.

pyRORPO

Hi!
I've some troubles with the pyRORPO bindings.
I was able to import by typing import pyRORPO
How do you use the bindings? can you give an example using a 3d numpy array?

Thanks!

Docker version coming?

Hi,

I couldn't compile the project properly. I wonder whether a docker version is going to be released any time soon.

Best regards,

Jose

Dicom image with negative values

Hi,

Is it possible to translate intensity ranges so that RORPO works on medical images ?

For Instance, one of my native DICOM image is defined on [-2454, 1523]. It would be great if RORPO could translate it to [0, 3977] by default.

Thanks

LibRORPO has become too hard to compile on MacOS

LibRORPO does not compile anymore on MacOS

It has become too complicated with the python bindings and the Slicer3D module that requires too many dependencies.

There should be an option to just compile the C++ library and nothing else.

2D version of RORPO_multiscale_usage?

Hi,

Is there a 2D version of RORPO? I saw there’s a paper about it but couldn’t find a parameter for it in the help of RORPO_multiscale_usage.

Best regards,

Jose

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.