Coder Social home page Coder Social logo

hdrutils's People

Contributors

asztr avatar paramhanji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hdrutils's Issues

Values x4 larger when demosaic_first=True

When I pass demosaic_first=True to merge, the resulting values in HDR images are 4x larger than when demosaic_first=False. I assume the values should be comparable.

AttributeError: module 'numpy' has no attribute 'float128'

I get this error on Windows:

Traceback (most recent call last):
  File "C:\Users\manti\Documents\projects\lf_capture\pipeline\main.py", line 121, in <module>
    merge_HDR_all(args.scene, args.sigma, args.beta, args.color_calibration,
  File "C:\Users\manti\Documents\projects\lf_capture\pipeline\merge.py", line 96, in merge_HDR_all
    HDRutils.imwrite(out_file, merged)
  File "C:\Users\manti\anaconda3\envs\lf_capture\lib\site-packages\HDRutils\io.py", line 79, in imwrite
    elif img.dtype in (np.float32, np.float64, np.float128):
  File "C:\Users\manti\anaconda3\envs\lf_capture\lib\site-packages\numpy\__init__.py", line 303, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float128'

I do not think that anyone would use float128 for pixel values, so I suggest removing this data type.

Warning when passing vector as "wb" parameter

When passing 3-element vector wb to

merge(files, ... wb=wb):

I get a warning message:

.../HDRutils/merge.py:77: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  if wb == 'camera':

The documentation could say in what format the numbers should be passed (numpy array?)

Merged exr seems overexposed

Hello! I encountered an issue while attempting to merge .CR2 RAW files for HDR processing. I noticed that the maximum pixel value in the resulting .exr file exceeds 10,000, and the average value appears to be quite high as well (around 130). I'm unsure if this is normal, considering the scene I photographed isn't particularly bright. Could there be an issue with my settings or configuration?

For your reference, I am using a Canon EOS 5D Mark III camera, and the code snippet I am using to merge the .CR2 files is as follows:
HDR_img = HDRutils.merge(CR2list, clip_highlights=True)[0]

Any insights or suggestions would be greatly appreciated. Thank you!

Image examples

Hello! Can you provide examples of your input and output data that you showed in the paper as examples?

Changing strict for loose requirements

I need a newer imageio to import imageio.v3, but then I get:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
hdrutils 0.10 requires imageio==2.9.0, but you have imageio 2.21.2 which is incompatible.

It would make more sense to change all the requirements to >=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.