Recently I've been trying to use JuicyPixels and hmatrix to process images. However, I don't know how to calculate the gradient of a matrix as image gradient using hmatrix. There seems to be no available API and I can only write a one myself which is too slow to work.

In hmatrix, I discover that the mapMatrix function is very useful but it only concerns one element transformations. Is there any function which is more powerful than mapMatrix that can iterate over matrix efficiently?

有帮助吗?

解决方案

hmatrix is not intended for image processing (see the mentioned repa-Devil and also easyVision), but you can try conv2.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top