Giter VIP home page Giter VIP logo

Comments (5)

dzenanz avatar dzenanz commented on September 26, 2024

Already in metadata?

'RescaleIntercept': -1000.0,
'RescaleSlope': 0.505467132505176,

from itkioscanco.

wallematthias avatar wallematthias commented on September 26, 2024

These seem to be the conversions from raw scanner to hounsfield units, for the density separate conversion factors are required. I am looking for slope and intercept for calibrated mg HA/ccm

from itkioscanco.

dzenanz avatar dzenanz commented on September 26, 2024

@mkuczyns do you have some suggestion?

from itkioscanco.

wallematthias avatar wallematthias commented on September 26, 2024

In /src/itkScancoImageIO.cxx it looks like density slope and intercept are being pulled

else if (skey == "Density: slope")
{
this->m_RescaleSlope = strtod(value, nullptr);
}
else if (skey == "Density: intercept")
{
this->m_RescaleIntercept = strtod(value, nullptr);

but then again overwritten later on when the image is read
// This code causes rescaling to Hounsfield units
if (this->m_MuScaling > 1.0 && this->m_MuWater > 0)
{
// mu(voxel) = intensity(voxel) / m_MuScaling
// HU(voxel) = mu(voxel) * 1000/m_MuWater - 1000
// Or, HU(voxel) = intensity(voxel) * (1000 / m_MuWater * m_MuScaling) - 1000
this->m_RescaleSlope = 1000.0 / (this->m_MuWater * this->m_MuScaling);
this->m_RescaleIntercept = -1000.0;
}

from itkioscanco.

dzenanz avatar dzenanz commented on September 26, 2024

Then we should introduce new metadata members to hold DensitySlope and DensityIntercept? Could you propose a PR?

from itkioscanco.

Related Issues (11)

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.