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>
void setMaxOpacity(float opacity)
void setChannelColor(uint channel, Color color)
void setChannelHidden(uint channel, bool hide)
void setInterpolation(bool useInterpolation)
void loadAttributes() override

Protected functions

void drawTextures(Matrix4f& perspectiveMatrix, Matrix4f& viewingMatrix, bool mode2D)
void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D) 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