Coder Social home page Coder Social logo

Comments (5)

gfacciol avatar gfacciol commented on September 25, 2024

Sorry about that, writing JPG files is not supported by the IO library I use.
PNG should be used for 8bit output, and TIFF for 16+bits or floating point.
The fallback format is PNM so your output is probably a PPM or PGM.
To view images regardless of their format (especially fancy float TIFFSs) you can use :
https://github.com/gfacciol/pvflip or ImageJ.

from bm3d.

luczeng avatar luczeng commented on September 25, 2024

Hey, I'm trying to save the image as TIFF but it doesn't seem to be working. Inputing the images as TIFF and saving them as png is working though.
Should I modify your code or is there a work around ?
Thanks

from bm3d.

gfacciol avatar gfacciol commented on September 25, 2024

The TIFF produced by the program should be a 32 bits floating point TIFF.
You should be able to verify it by running:

tiffinfo output.tif
If it's not a TIFF, then
identify output.tif
should be able to find out the format.

This format (32bit float) is not very popular with the usual image viewers.
Matlab can http://linuxtoosx.blogspot.fr/2012/05/reading-floating-point-multi-channel.html
Where are you reading the image?

from bm3d.

luczeng avatar luczeng commented on September 25, 2024

Yeah I got it. I was using ubuntu embedded image viewer and was seeing a blank screen, so I thought the program had failed. I can open the image with RawTherapee.
Any reason to save TIFFs as 32bits floats ? It's surprising as my input has 8 bits. Probably gonna convert it to 8 bits one way or the other.
Thanks

from bm3d.

gfacciol avatar gfacciol commented on September 25, 2024

The reason we use 32 bits floats is that internally all the processing is done at that precision,
and the implementation is agnostic to the dynamic range of the input image.
To export a "classic" 8-bits file you can set the extension of the output file to output.png
that's a very common lossless format that all viewers can see.

from bm3d.

Related Issues (8)

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.