Why are Processors internal? #2106
-
Hi community, I want to use a customized kernel to blur the image. I have checked the source code and found that the ConvolutionProcessor seems to do the work. But the processor is internal so I could not use it in my code. I was thinking to use the following code to blur the image but failed because of the internal class setting. Have I missed something? Why are the processors set as internal?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The generic processor classes such as
Have you tried the |
Beta Was this translation helpful? Give feedback.
-
I agree, we should introduce convolution with arbitrary kernel. We actually have something quite this already, but its in @alan0428a: until we have something like this you could (miss-)use the EdgeDetection processor for your purpose:
I believe the kernel values need to be divided by the sum of the kernel values to actually make this a blur kernel. |
Beta Was this translation helpful? Give feedback.
I agree, we should introduce convolution with arbitrary kernel.
We actually have something quite this already, but its in
DetectEdges
: You can provide there an DenseMatrix as a kernel.@alan0428a: until we have something like this you could (miss-)use the EdgeDetection processor for your purpose:
I believe the kernel values need to be divided by the sum of the kernel values to actually make this a blur kernel.
Also you can provide to 1D kernel…