mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 18:43:05 +08:00
Fixing code example on
js_image_display markdown
This commit is contained in:
parent
f37924796f
commit
cb339ac6d1
@ -45,7 +45,7 @@ cv.cvtColor(dst, dst, cv.COLOR_***2RGBA);
|
|||||||
|
|
||||||
Then, new an ImageData obj from dst:
|
Then, new an ImageData obj from dst:
|
||||||
@code{.js}
|
@code{.js}
|
||||||
let imgData = new ImageData(new Uint8ClampedArray(dst.data, dst.cols, dst.rows);
|
let imgData = new ImageData(new Uint8ClampedArray(dst.data), dst.cols, dst.rows);
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
Finally, display it:
|
Finally, display it:
|
||||||
|
Loading…
Reference in New Issue
Block a user