arrayfire / arrayfire/arrayfire-python
arrayfire imax function
Open
- Dominant language
- Python
- Stars
- 422
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
`max_val, max_idx = af.imax(img)`
running this function seems to have wrong behavior and finds wrong max value for an image with pixels in range [0,1].
When running `max_val, max_idx = af.imax(af.flat(img))` the correct max value is found.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the discrepancy with an image whose pixels are in [0,1], comparing af.imax(img) with af.imax(af.flat(img)). Start at the Python binding entry point for af.imax and inspect how image shape is handled; done means both forms return the same correct maximum value and index.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100