Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper function for handling diverse input data types #1641

Open
k034b363 opened this issue Dec 18, 2024 · 1 comment
Open

Helper function for handling diverse input data types #1641

k034b363 opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
new feature New feature ideas and solutions

Comments

@k034b363
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Across several applications, including geospatial data and certain spectral indices, data types and ranges can vary. It would be helpful to have a more comprehensive way of deciding what data type is and how it might best be scaled for either visualization or calculation downstream.

Describe the solution you'd like
A helper function that would take a numpy array and through both the data type and range, decide how to scale or transform the array into something more uniform (or at least so that all input types might be visualized in the same way for geospatial, for example).

Describe alternatives you've considered
Something specific to read_geotif in plantcv-geospatial, but the work involved would probably be best incorporated into main plantcv in case it is of use more broadly

@k034b363 k034b363 added the new feature New feature ideas and solutions label Dec 18, 2024
@k034b363 k034b363 self-assigned this Dec 18, 2024
@HaleySchuhl
Copy link
Contributor

This is a great idea. Checking datatypes can be a helper function, since it's something that comes up very often. This feels related to this issue #1635, though these examples of datatype checks are mostly between binary, grayscale, and RGB.

@github-project-automation github-project-automation bot moved this to New Issues in PlantCV4 Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature ideas and solutions
Projects
Status: New Issues
Development

No branches or pull requests

2 participants