问题标签 [sobel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 在实时摄像头android中应用sobel过滤器
我正在android中开发一个相机应用程序,我想要的是实时应用一个sobel过滤器。我读到这对于 OpenGL 和 OpenCV 是可行的(我不知道哪个更容易)。谁能帮我?
我的应用程序是用于纸板的,但这与这个问题无关。
c++ - I don't understand why my c++ code running so slow
I'm working on Sobel masking for edge detection without using any special library. The output that I want to get is a text files with 512x512 matrix with values between 0 to 1. I've checked that the code is working by putting smaller values like 50 instead of 'ROW-2' and 'COL-2'. However if I put them back, the code takes forever to run.
Constant values are:
This is the main function:
This is the function SobelConvolution:
This is the function ImageReader:
Any hint or advice? Thanks in advance!
python - python - 在没有 opencv 的情况下使用 python 实现 Sobel 运算符
给定一个灰度 8 位图像(像素强度值从 0 到 255 的二维数组),我想在图像上实现 Sobel 运算符(掩码)。下面的 Sobel 函数基本上围绕给定像素循环,对像素应用以下权重:
然后应用给定的公式:
我试图从这个链接实现公式:http: //homepages.inf.ed.ac.uk/rbf/HIPR2/sobel.htm
鉴于此灰度 8 位图像
应用该功能时我得到了这个:
但应该得到这个:
我已经用python实现了其他高斯过滤器,我不确定我哪里出错了?
java - 实现 Sobel 算法
我想实现Sobel
算法。
第一的
我得到输入图像的灰度数据并将数据放入mGrayData
:
然后
我计算每个点的梯度:
方法gradient(x,y)
:
问题
输入图像:
并在经过过滤后:
现在我该如何实现呢?
编辑:
我不知道如何使用渐变数据。我试试这个:
我得到图像:
java - Sobel filter is strange
Recently I am preparing for Low Poly
like this:
My first thing is to pick up some points of the input image.I want to try Sobel
for detection and I have read soble article.
Now I meet problem where I don't know how to implement sobel filter.Folowing is my try:
First -> Get gray data from input image
Then -> Calculate gradient of every point
Last -> Create new image with above gradient
Original image
What it should look like?
What I got
It's so strange that the color is a little blue
Edit 1:
Now I get:
why is it so black?
image-processing - 索贝尔梯度角分辨率
当将 Sobel 算子应用于 X 和 Y 方向的图像并atan2
从生成的 X/Y 向量计算角度 ( ) 时,我似乎以 45 度的步长获得梯度方向。Sobel 是否只能以 45 度的步长产生 8 个方向,或者我应该得到精确的角度还是可能是舍入误差?
我使用 sobel 卷积Gx
并Gy
在此处提到https://en.wikipedia.org/wiki/Sobel_operator