How do you convert a Vuforia byte/image array to Color32[], the same that you would get from the Unity webcam texture?
You need to map the bytes to Unity Color structs based upon their pixel format. Unity utilizes RGBA, Vuforia supports a variety of formats..
from the API ( QCAR::PIXEL_FORMAT )
Unknown format - default pixel type for undefined images
A color pixel stored in 2 bytes using 5 bits for red, 6 bits for green and 5 bits for blue
A color pixel stored in 3 bytes using 8 bits each
A grayscale pixel stored in one byte.
A color pixel stored in 12 or more bits using Y, U and V planes
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?
To reset your password please enter the email address associated with your account. An email will be sent to you with instructions on how to complete changing your password.
You need to map the bytes to Unity Color structs based upon their pixel format. Unity utilizes RGBA, Vuforia supports a variety of formats..
from the API ( QCAR::PIXEL_FORMAT )
Unknown format - default pixel type for undefined images
A color pixel stored in 2 bytes using 5 bits for red, 6 bits for green and 5 bits for blue
A color pixel stored in 3 bytes using 8 bits each
A grayscale pixel stored in one byte.
A color pixel stored in 12 or more bits using Y, U and V planes