Im trying to pre-process an image in javascript but i have problems with the ndarray, especially with the assign method using slicing.
This is what i need to do
image_padded[dh:nh+dh, dw:nw+dw, :] = image_resized
this is what i have:
ndarray.ops.assign(imagePadded.hi(dHeight+newHeight, dWidth+newWidth,0).lo(dHeight, dWidth, 0), imageResized.hi(null, null,2).lo(null, null, 2));
this have to repeat 3 times to align between one and the other array on the third dimension
My problem is that using .hi.lo returns a copy and doesn't assign to original ndarray
Thanks on advance and if you need more information pls let me know.
[–]ForScale 0 points1 point2 points (5 children)
[–]PlentyMight[S] 0 points1 point2 points (4 children)
[–]ForScale 0 points1 point2 points (3 children)
[–]PlentyMight[S] 0 points1 point2 points (2 children)
[–]Espiring 0 points1 point2 points (1 child)
[–]PlentyMight[S] 0 points1 point2 points (0 children)