Skip to content

Commit 579c2b4

Browse files
committed
image: fix missing export
1 parent a875257 commit 579c2b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/visp/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct image_data {
101101
VISP_API image_data image_alloc(i32x2 extent, image_format format);
102102

103103
// Set all pixels to zero.
104-
void image_clear(image_span const&);
104+
VISP_API void image_clear(image_span const&);
105105

106106
// Load image from file (PNG, JPEG, etc.)
107107
VISP_API image_data image_load(char const* filepath);

src/visp/vision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ birefnet_model birefnet_load_model(char const* filepath, backend_device const& d
9191

9292
image_data birefnet_compute(birefnet_model& model, image_view image) {
9393
i32x2 res = birefnet_image_extent(image.extent, model.params);
94-
if (!model.input || res != model.params.image_extent) {
94+
if (!model.graph || res != model.params.image_extent) {
9595
model.params.image_extent = res;
9696
model.graph = compute_graph_init(6 * 1024);
9797

0 commit comments

Comments
 (0)