pulsatrix
Loading...
Searching...
No Matches
image_grid_view.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <string>
8#include <vector>
9
10#include "pulsatrix/dataset.hpp"
12
13namespace pulsatrix {
14
24public:
38 static void Draw(const char* title, const Dataset& dataset, TextureCache& cache, int64_t start_index,
39 int64_t count, int columns = 4, float thumbnail_size = 96.0f,
40 const std::vector<std::string>* captions = nullptr);
41};
42
43} // namespace pulsatrix
Random-access dataset abstraction – pulsatrix's analogue of PyTorch's torch.utils....
Definition dataset.hpp:33
Draws a grid of image samples from a Dataset whose first Sample field is a decoded (1,...
Definition image_grid_view.hpp:23
static void Draw(const char *title, const Dataset &dataset, TextureCache &cache, int64_t start_index, int64_t count, int columns=4, float thumbnail_size=96.0f, const std::vector< std::string > *captions=nullptr)
Uploads decoded image Tensors to OpenGL textures, keyed and cached by an arbitrary integer key (e....
Definition texture_cache.hpp:26
Random-access dataset abstraction – Sample, Dataset (size()/get()).
Definition acquisition_functions.hpp:16
Keyed GPU texture cache for uploading decoded image Tensors to OpenGL.