mapillary / mapillary/OpenSfM

Multilayer TIFF Support

Open
#752 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.8k
Forks
899
PR merge metrics
No merged PRs in 30d

Description

Description

Enhancement: Add INT16 TIFF support to openSFM

How

Falling back to rasterio library when cv2 fails and normalizing int16 to int8 rgb/grayscale image.

Where in the code:

Changing io.py lines 1016 to 1017:
https://github.com/mapillary/OpenSfM/blob/6585f0561e7c9d4907eadc7bc2fb9dbdad8a2945/opensfm/io.py#L1016-L1017

Why:

It would be helpful for processing images with multiple information layers, like the ones used in field analysis.
ie.: https://github.com/OpenDroneMap/ODM/issues/1235

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in opensfm/io.py at lines 1016-1017 and inspect the existing cv2 image-loading path. Review how rasterio fallback and INT16 normalization should fit there; done means multilayer INT16 TIFFs load as normalized RGB or grayscale images when cv2 fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.