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
Good day sir:
My trouble is about tiff format that be transformed by the function tiff.toCanvas.
The type of my tiff image is 16 bit grayscale, which the color format is luminance.
I defined a tiff object from a buffer like this :
var tiff = new Tiff({buffer: result.target.result});
var canvasTiff = tiff.toCanvas();
When I called tiff.toCanvas() function , I found the type of the tiff data which should be 16 bit grayscale was transformed to 8bit *4 RGBA type.
I don't know how to turn it back to 16 bit luminance;
Can you help me to get the raw image data buffer from the tiff object?
The text was updated successfully, but these errors were encountered:
zy4944796
changed the title
how to get the raw data buffer from tiff object ?
how to get the raw 16 bit luminance data buffer from tiff object ?
Jul 14, 2020
Good day sir:
My trouble is about tiff format that be transformed by the function tiff.toCanvas.
The type of my tiff image is 16 bit grayscale, which the color format is luminance.
I defined a tiff object from a buffer like this :
var tiff = new Tiff({buffer: result.target.result});
var canvasTiff = tiff.toCanvas();
When I called tiff.toCanvas() function , I found the type of the tiff data which should be 16 bit grayscale was transformed to 8bit *4 RGBA type.
I don't know how to turn it back to 16 bit luminance;
Can you help me to get the raw image data buffer from the tiff object?
The text was updated successfully, but these errors were encountered: