MCPcopy Create free account
hub / github.com/colmap/colmap / ApplyImageColormap

Method ApplyImageColormap

src/colmap/ui/render_options_widget.cc:258–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void RenderOptionsWidget::ApplyImageColormap() {
259 std::unique_ptr<ImageColormapBase> image_color_map;
260
261 switch (image_colormap_cb_->currentIndex()) {
262 case 0: {
263 auto uniform = std::make_unique<ImageColormapUniform>();
264 uniform->uniform_plane_color = image_plane_color_;
265 uniform->uniform_frame_color = image_frame_color_;
266 image_color_map = std::move(uniform);
267 break;
268 }
269 case 1:
270 image_color_map = std::make_unique<ImageColormapNameFilter>(
271 image_colormap_name_filter_);
272 break;
273 default:
274 image_color_map = std::make_unique<ImageColormapUniform>();
275 break;
276 }
277
278 model_viewer_widget_->SetImageColormap(std::move(image_color_map));
279}
280
281void RenderOptionsWidget::ApplyBackgroundColor() {
282 model_viewer_widget_->SetBackgroundColor(

Callers

nothing calls this directly

Calls 1

SetImageColormapMethod · 0.80

Tested by

no test coverage detected