You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I got a zero value 'out.tif'. Then I debug the code, I found the problem occur at the memcpy where I labeled it. The bytes_per_pixel‘s value equals 0. I try to set bytes_per_pixel‘s value in Python code by:
read.props.bytes_per_pixel = 4
but it doesn't work.
So I try to set it in C codes by hard coded :
priv->bytes_per_pixel = 4
and it works.
The text was updated successfully, but these errors were encountered:
ufo-filters/src/ufo-memory-in-task.c
Line 122 in d1abb27
I intended to use the memory in mode to read the NumPy buffer just as the example given in UFO tasks docs:
But I got a zero value 'out.tif'. Then I debug the code, I found the problem occur at the memcpy where I labeled it. The bytes_per_pixel‘s value equals 0. I try to set bytes_per_pixel‘s value in Python code by:
read.props.bytes_per_pixel = 4
but it doesn't work.
So I try to set it in C codes by hard coded :
priv->bytes_per_pixel = 4
and it works.
The text was updated successfully, but these errors were encountered: