data_access_layer/
python_api.rs

1//! Here we define the Python API for data access layer. This is currently just one file, but we will probably
2//! expand this module into a directory with multiple files as the project grows as we will also need to define
3//! python classes in the future when building out the tags for the surgery steps.
4use crate::images::read_rgb_image as read_rgb_image_rust;
5
6use pyo3::prelude::*;
7
8
9#[pyfunction]
10pub fn read_rgb_image(path: String, width: usize, height: usize) -> PyResult<Vec<u8>> {
11    let data = read_rgb_image_rust(path, width, height);
12    Ok(data)
13}