Skip to content

Move fetch-store functions out of image_io and generalise#2436

Merged
Lestropie merged 1 commit intodevfrom
fetch_store
Aug 8, 2023
Merged

Move fetch-store functions out of image_io and generalise#2436
Lestropie merged 1 commit intodevfrom
fetch_store

Conversation

@Lestropie
Copy link
Copy Markdown
Member

Low priority for review, just putting up as a draft PR in case you want to pass judgement.

I'd already encountered this in the past when I implemented PNG support, which slightly unintuitively depends on relying on the same functionality used to determine the template functions for accessing and transforming image intensities. Now I've got a different use case, where I need to be able to define functions for converting between many possible pairs of data types and capture the requisite function in a std::function based on a template parameter and a DataType, but those data have nothing to do with images, and there's no need for the linear transform.

- Move files fetch_store.* from core/image_io/ to core/.
- Rename some functions to reflect the fact that they perform a linear transform of intensities in addition to fetching or storing raw data.
- Add new functions that provide access to such template functions but without the use of that linear transformation, which tends to be specific to image data.
@Lestropie Lestropie requested a review from jdtournier February 21, 2022 11:07
@Lestropie Lestropie self-assigned this Feb 21, 2022
@Lestropie Lestropie merged commit c0a452e into dev Aug 8, 2023
@Lestropie Lestropie deleted the fetch_store branch August 8, 2023 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant