A small test project to explore the std::mdspan C++ library feature coming up with C++23.
As there is no std::mdspan implementation available in the major std library implementations at the time of this writing, this project uses the kokkos mdspan reference implementation.
Reads in a gray scale image, applies a box filter and writes the filtered image to disk.
mdspan is hereby being used to access the individual pixels of an image. Different layout_policies are being used to control the behavior of the filter near the borders transparently (clamp, wrap around or reflect).
Writes a 2d mdspan to a file on disk and creates a mdspan instance backed by a memory mapped variant of the previously written file.
- mdspan reference implementation
- mio for memory mapping
- Jason Turners C++ Starter Project
- input image for
example_image_opshttps://www.publicdomainpictures.net/en/view-image.php?image=197897&picture=reporter-camera