Questions tagged [openimageio]

22 questions
1
vote
1 answer

Convert sRGB image to grayscale using OpenImageIO and Python

I can't find anywhere online or in documentation that explains clearly how to make this conversion using Python. In my situation I need to do it with OpenImageIO- I just need to feed it a path and save out the converted image, and ideally it would…
bblack
  • 33
  • 2
  • 5
1
vote
0 answers

Can't load image using openImageIO

I was trying to load image using opeimageio which I installed using vcpkg. But I get an error saying F:\vcpkg\installed\x64-windows\include\OpenImageIO\fmt\format-inl.h(1371,8): error C2061: syntax error: identifier 'HANDLE'. My code is…
Bruk
  • 152
  • 2
  • 7
1
vote
1 answer

How to interpret the 'rational' value for FramesPerSecond metadata in some movie formats?

The plugin for GIFs or Movies defines a FramesPerSecond attribute of type int[2] (rational) What does that mean? One possible interpretation I came up with is that the second item in the array holds the fractional part. Is that so? If yes, why not…
user1785730
  • 3,150
  • 4
  • 27
  • 50
1
vote
1 answer

OpenImageIO: Open image to the display window resolution instead of the data resolution

I am working with OpenImage Denoiser, which loads EXR files using OpenImageIO. Images are loaded like so: std::shared_ptr loadImageOIIO(const std::string& filename, int channels) { auto in = OIIO::ImageInput::open(filename); …
T_R_U_T_H
  • 475
  • 3
  • 12
1
vote
1 answer

Combine image channels of two images using oiiotool

There is command in the oiiotool to swap the channels of a image by using the --ch command like so: oiiotool rgba.tif --ch R=B,G,B=R,A -o bgra.tif What Im asking is if there is an option to load two images to the stack and add lets say the Red…
jovcem
  • 71
  • 1
  • 9
1
vote
0 answers

Undefined symbols for architecture x86_64 when using OIIO

I'm trying to create a function to easily write out exr image files using openimageio. Whenever I compile my test program though I get the following error. Undefined symbols for architecture x86_64: …
1
vote
1 answer

How to read tiled images with OpenImageIO and read_tiles()

I have a problem reading a tiled image on Windows with VisualStudio and OIIO 2.0.8. For testing I rendered an image with Arnold with tiled option checked and without the tile option. While reading the scanline image works fine, the tiled rendering…
haggi krey
  • 1,885
  • 1
  • 7
  • 9
1
vote
0 answers

How to convert uint16_t image data to uint8_t image data

How can I convert image data of 16 bit integer type to 8-bit integer type using openimageio c++ api? Is this possible to do? I have tried using convert_types() present in imageio.h but the result is not proper as I would have passed wrong 'n'…
Revanth
  • 59
  • 8
1
vote
1 answer

Trying to extract a subimage using python and openimageIO fails

I just getting into writing stuff using OpenImageIO. I my experiment, I'm trying to extract a few select sub images from an exr file and write them into another one. But when I try the following examples from the documentation and I keep getting an…
eoses
  • 15
  • 3
1
vote
1 answer

Export PSD Layers to EXR in Python

I'm trying to write a program to read in a .psd file, split the layers into individual images (maintaining the original image's dimensions) and export them as EXR files. I'm currently trying to use the OpenImageIo library to accomplish this but the…
Ray Barrett
  • 73
  • 3
  • 10
1
vote
1 answer

Resize image using Python OpenImageIO maintain aspect ratio

I'm trying to resize an image after doing some additional processing using OpenImageIO and python. However it appears this process not is as easy as PIL. In PIL i can supply a new resolution for example 512 x 512 and it will resize my image…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
0
votes
1 answer

Separating channels with OpenImageIO python

I want to render level curves from an image, and for that I need only one channel. When using read_image, it generates RGBRGBRGB, which is incompatible with matplotlib contour. From the documentation of ImageInput, it looks like I should be able to…
user877329
  • 6,717
  • 8
  • 46
  • 88
0
votes
0 answers

Can't use OpenimageIo lib

I have some difficulties to install OpenImageIO library on Ubuntu (22). As they said in the INSTALL.md, building from source, I run the 'make' command but after what should I do to be able to compile "import OpenImageIO" to my project in python ?
huangkaiyi
  • 73
  • 2
  • 9
0
votes
1 answer

oiiotool to process a MOV input file

Is it possible to use oiio tool to convert a mov to a sequence of images? There is a way to extract a single frame (--subimage) but this gets very slow for longer QTs (more than 2000 frames). Since it can extract one frame there should be a way to…
pawel
  • 1,031
  • 2
  • 9
  • 16
0
votes
1 answer

C++ format pixels data for PySide2 QImage.fromData()

I am developing an Image viewer. My main goal is to make something able to easily load .EXR files along with all other main formats. I based it around : PySide2 (Qt) for the UI. OpenImageIO for .exr files (and some others) loading. I built a…
gui2one
  • 160
  • 1
  • 1
  • 14
1
2