Im using Javascript canvas to change pixels on an image. At some point I need the array buffer to work with the jsfeat.js library.
IE10 tells me that "Typed array constructor argument is invalid" at this line :
var imageData = ctx.getImageData(0, 0, W, H);
var data_u32 = new Uint32Array(imagedata.data.buffer);
When I console.log imagedata.data.buffer, it gives me "undefined" in IE10. In Chrome I have " ArrayBuffer {}".
If i pass the data directly the effect is not working.
How can i fix this ?
imagedata? How are you setting it?