fast::HeatmapRenderer class

Renders Tensor data objects as heatmaps.

Base classes

class ImageRenderer
Renders 2D Image data objects, both in 2D and 3D.

Public functions

auto create(bool hideChannelZero, bool useInterpolation, float minConfidence, float maxOpacity, LabelColors channelColors) -> std::shared_ptr<HeatmapRenderer>
auto getMinConfidence() const -> float
void setMaxOpacity(float opacity)
auto getMaxOpacity() const -> float
void setChannelColor(uint channel, Color color)
auto getChannelColor(uint channel) -> Color
void setChannelHidden(uint channel, bool hide)
auto getChannelHidden(uint channel) -> bool
void setInterpolation(bool useInterpolation)
auto getInterpolation() const -> bool
auto attributesToString() -> std::string override
Convert attributes to string.
void loadAttributes() override

Protected functions

void drawTextures(std::unordered_map<uint, std::shared_ptr<SpatialDataObject>> dataToRender, Matrix4f& perspectiveMatrix, Matrix4f& viewingMatrix, bool mode2D)
void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D, int viewWidth, int viewHeight) override

Protected variables

std::map<uint, Color> mColors
std::map<uint, bool> mHide
std::map<uint, std::shared_ptr<Tensor>> mTensorUsed
float mMaxOpacity
float mMinConfidence
cl::Buffer mColorBuffer
bool mColorsModified
bool mUseInterpolation