MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / getScoreBuffer

Method getScoreBuffer

simulation/src/range_likelihood.cpp:1255–1269  ·  view source on GitHub ↗

The scores are in score_texture_

Source from the content-addressed store, hash-verified

1253
1254// The scores are in score_texture_
1255const float*
1256RangeLikelihood::getScoreBuffer() const
1257{
1258 if (score_buffer_dirty_ && !compute_likelihood_on_cpu_) {
1259 glActiveTexture(GL_TEXTURE0);
1260 glBindTexture(GL_TEXTURE_2D, score_texture_);
1261 glGetTexImage(GL_TEXTURE_2D, 0, GL_RED, GL_FLOAT, score_buffer_);
1262 glBindTexture(GL_TEXTURE_2D, 0);
1263 if (gllib::getGLError() != GL_NO_ERROR) {
1264 std::cerr << "GL Error: RangeLikelihood::getScoreBuffer" << std::endl;
1265 }
1266 score_buffer_dirty_ = false;
1267 }
1268 return score_buffer_;
1269}

Callers 2

displayFunction · 0.80
displayFunction · 0.80

Calls

no outgoing calls

Tested by 2

displayFunction · 0.64
displayFunction · 0.64