openexr

Reading .exr files in OpenCV

醉酒当歌 提交于 2021-01-04 04:18:30
问题 I have generated some depth maps using blender and have saved z-buffer values(32 bits) in OpenEXR format. Is there any way to access values from a .exr file (pixel by pixel depth info) using OpenCV 2.4.13 and python 2.7? There is no example anywhere to be found. All I can see in documentation that this file format is supported. But trying to read such a file results in error. new=cv2.imread("D:\\Test1\\0001.exr") cv2.imshow('exr',new) print new[0,0] Error: print new[0,0] TypeError: 'NoneType'

Reading .exr files in OpenCV

北城以北 提交于 2021-01-04 04:15:28
问题 I have generated some depth maps using blender and have saved z-buffer values(32 bits) in OpenEXR format. Is there any way to access values from a .exr file (pixel by pixel depth info) using OpenCV 2.4.13 and python 2.7? There is no example anywhere to be found. All I can see in documentation that this file format is supported. But trying to read such a file results in error. new=cv2.imread("D:\\Test1\\0001.exr") cv2.imshow('exr',new) print new[0,0] Error: print new[0,0] TypeError: 'NoneType'

How to convert float16 to uint8 in Python for EXR files

放肆的年华 提交于 2020-06-25 05:41:27
问题 I'm using OpenEXR to read EXR files in Python. I have R, G and B channels with Half data (float16). Using Numpy, I tried, unsuccessfully to convert the data from float16 to uint8 (0-255 colors). rCh = getChanEXR(imageFile, 'R','HALF') rCh = np.array(rCh).astype('uint8') So, I put the R channel pixel values to a variable rCh. Then I convert the array.array to an np.array so that I can use the astype method to convert it to uint8. I am new to this, so I clearly do not have it right as all

Is OpenEXR supported on iOS / macOS?

回眸只為那壹抹淺笑 提交于 2019-12-12 20:49:35
问题 I am trying to find out if reading OpenEXR files are supported or not on iOS and macOS. Here is what I found out: The docs barely mention OpenEXR, and where they do they say that it's only supported on recent macOS. Yet, the official WWDC 2017 samples for ARKit simply load .exr images with: UIImage(named: "image.exr") This is found in the following official samples: Handling 3D Interaction and UI Controls in Augmented Reality Interactive Content with ARKit Audio in ARKit How is OpenEXR

How to Load a Many-Channel EXR in Android

百般思念 提交于 2019-12-12 04:57:29
问题 I'm using OpenCV for Android like this to to load an EXR image: String testImgPath = "/storage/sdcard0/test2.exr"; //I know better than to hardcode paths. This is just a test. Mat mRgba = Highgui.imread(testImgPath, Highgui.CV_LOAD_IMAGE_ANYCOLOR|Highgui.CV_LOAD_IMAGE_ANYDEPTH); This works for the first 3 channels of an image (RGB ordering aside). I can display the resulting matrix like this: Bitmap img = Bitmap.createBitmap(mRgba.cols(), mRgba.rows(), Bitmap.Config.ARGB_8888); Utils

Using EXR images in OpenCV

ε祈祈猫儿з 提交于 2019-12-01 06:42:05
问题 I'm currently working on a project with OpenEXR and I would like to implement some Blob detection algorithms. To do this I figured that I could use OpenCV as it says in the documentation that it can open OpenEXR format files. I have all the libraries installed and working as I've been doing other things. I open a simple jpg file with openCV cvLoadImage. It works fine. But when i try to open any .exr file it doesn't seam to like it. I get a gray window where there should be the image display.

Install openexr in python doesn't work

て烟熏妆下的殇ゞ 提交于 2019-11-30 05:24:43
问题 I have successfully installed openexr using pip install openexr on my mac, but the same command fails on Ubuntu: OpenEXR.cpp:9:22: fatal error: ImathBox.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for openex I tried using apt-get install openexr which seems like to install without an error but then when I try to import OpenEXR in python, it doesn't work. Does