Skip to content

Quick question regarding Range Transformation #1

Description

@lschaupp

Hey,

I had a quick question regarding the transformation of the pointcloud to rangeImage within the code:

      float range = (!std::isinf(r))?
            std::max(0.0f, std::min(1.0f, factor * (r + offset))) :
            0.0;

      _rangeImage.at<ushort>(j, i) = static_cast<ushort>((range) * MAX_USHORT);

I'm guessing you are converting the range values to a 16bit image, is this correct?
Could you elaborate this section a bit more though?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions