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

Multidimensional images #4

Open
timholy opened this issue Sep 12, 2021 · 1 comment
Open

Multidimensional images #4

timholy opened this issue Sep 12, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@timholy
Copy link
Member

timholy commented Sep 12, 2021

Mat is described as a "multidimensional array" and has a constructor allowing you to construct one. Is there any benefit in generalizing the wrapper to allow more than 2 "spatial" dimensions?

timholy added a commit to timholy/JuliaOpenCVBindingGenerator that referenced this issue Sep 12, 2021
This is a proposed redesign that may be a bit more natural to work
with from the Julia perspective. The principal difference are:

- Support eltypes of the form `SVector{T,N}`: this makes this wrapper
  behave more like OpenCV itself, which (unlike Python) does not use
  an array dimension to encode the number of color channels.

- Support `N0f8` and `N0f16`, JuliaImages preferred interpretation of
  8- and 16-bit unsigned intensity data. (See FixedPointNumbers and
  https://juliaimages.org/latest/tutorials/arrays_colors/#fixedpoint;
  interestingly, OpenCV itself suffers from the exact same problem, see
  https://stackoverflow.com/questions/14539498/change-type-of-mat-object-from-cv-32f-to-cv-8u
  for an example of a user who got bit by the "divide by 255" rule.)

- Work towards support for multidimensional arrays (see
  JuliaImages/OpenCV.jl#4)

- Validate arguments more carefully and improve correctness in a few
  key places
@rakeshksr
Copy link
Member

@timholy Does this issue still valid?

@rakeshksr rakeshksr added enhancement New feature or request question Further information is requested labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants