Skip to content
Discussion options

You must be logged in to vote

Hi @lfbuchmann

Here you go:

ref<Bitmap> bmp = (...);
size_t tensor_shape[3] = { bmp->height(), bmp->width(), bmp->channel_count() };
TensorXf tensor(bmp->data(), 3, tensor_shape);

A word of caution though, a lot of the convenience functions for automatic differentiation in Dr.Jit have only been written in Python. Writing an entire optimization in C++ will require quite a bit of work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lfbuchmann
Comment options

@lfbuchmann
Comment options

@njroussel
Comment options

Answer selected by lfbuchmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants