Ask Your Question

oxeed's profile - activity

2015-08-07 12:21:45 -0600 received badge  Enthusiast
2015-08-03 06:53:12 -0600 commented question imread doesn't open pbm/tiff images

Actually I think I'll give up on 32bit :D For some reason reading 16bit images works, so I'll stuck to them and curse on 32bit.. Thanks again, I really appreciated your support and your help! :)

2015-08-03 06:11:08 -0600 commented question imread doesn't open pbm/tiff images

The problem is not the extension itself, it's the bit depth. I can open pbm files as long as they are 16bpc. Do you know a way to read 32 bit files on opencv?

2015-07-31 13:00:24 -0600 commented question imread doesn't open pbm/tiff images

Well, if you think it is a good idea I can upload the whole code so that you can have a really quick idea of what we are talking about (it's not that long, about 400 spaced rows); as I said, this is not a program I wrote so I'm not sure on what I could cut and what should remain there :( The program itself only reads normal images on 8bpc. I've been asked to allow the user to load hdr images so yes, I do need 16/32 bits per image. I've solved this problem on another similar algorithm in java adding JAR's to the runtime classpath but, beside the fact that those format should be supported by standard, I can't find them for opecv..

2015-07-31 12:29:26 -0600 commented question imread doesn't open pbm/tiff images

Well, unfortunatly this is not a code of mine. It is a code I've been given that applies an image enhancing algorithm on an uploaded image. What I need to do is to achieve making it read high dinamic range images. So yes, there is a lot of stuff, but I'm afraid it's all necessary :)/:(

2015-07-31 12:19:22 -0600 commented question imread doesn't open pbm/tiff images

So you don't have any guess.. right?

Should it help somehow, this is the include&define section:

    #include <cstdio>
#include <cmath>

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/photo/photo.hpp>

#define CV_LOAD_IMAGE_ANYDEPTH 2
#define CV_LOAD_IMAGE_ANYCOLOR 4
2015-07-31 11:27:47 -0600 commented question imread doesn't open pbm/tiff images

Don't know if it can help, but I tried to download a pbm image to give you. I took this one (http://netghost.narod.ru/gff/sample/i...) and, instead of not opening the file, the program crashed. The difference between the pbm files I make with photoshop and this one is that the downloaded one is b/n.

2015-07-31 11:22:35 -0600 commented question imread doesn't open pbm/tiff images

This link should automatically download an example tif image, which I tested and can't open http://www.alternatiff.com/testpage.html

2015-07-31 11:11:58 -0600 commented question imread doesn't open pbm/tiff images

I'm pretty sure it's 2.4.11

This is the 2x2 pixel image I was talking about (.tiff) http://postimg.org/image/dnxaang3p/

And this is a part of a bigger .tiff image: http://postimg.org/image/tg2zgc2ut/

The same images converted with photoshop in pbm can't be opened neither.

(I can't upload them directly because I'm a new user and I can't answer to my own posts. All I can do is give you links :) )

2015-07-31 10:32:21 -0600 commented question imread doesn't open pbm/tiff images

Thank you for answering :) Actually, any image with a pbm/tiff extension won't be loaded. I even made a 32byte per channel 2x2 pixel image and it didn't get it. If you still need some image I'll upload them :) Thanks again!

2015-07-31 09:13:46 -0600 asked a question imread doesn't open pbm/tiff images

Hi, I have a code that works with low dynamic range images (like png, jpeg and other normal extensions), but it can't read pbm/tiff files. What can I do?

cv::Mat img = cv::imread(argv[1], CV_LOAD_IMAGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR);

if (img.rows*img.cols==0){
    printf("\nImage not acquired.");
    return 0;
}

..of course, if I load one of those kind of images, it returns 0. I've already asked on stackoverflow but nobody answerd me. I'm getting crazy.