Questions tagged [sobel]

The Sobel operator, sometimes called Sobel Filter, is used in image processing and computer vision, particularly within edge detection algorithms.

The Sobel operator, sometimes called Sobel Filter, is used in image processing and computer vision, particularly within edge detection algorithms.

It is named after Irwin Sobel, who presented the idea of an "Isotropic 3x3 Image Gradient Operator" at a talk at the Stanford Artificial Intelligence Project (SAIL) in 1968.

Technically, it is a discrete differentiation operator, computing an approximation of the gradient of the image intensity function. At each point in the image, the result of the Sobel operator is either the corresponding gradient vector or the norm of this vector.

The Sobel operator is based on convolving the image with a small, separable, and integer valued filter in horizontal and vertical direction and is therefore relatively inexpensive in terms of computations.

On the other hand, the gradient approximation that it produces is relatively crude, in particular for high frequency variations in the image.

The Kayyali operator for edge detection is another operator generated from Sobel operator.

Wikipedia: http://en.wikipedia.org/wiki/Sobel_operator

182 questions
0
votes
1 answer

RenderScript Sobel lmplementation, different in- and output types

I want to implement a Sobel filter in RenderScript with uchar4 as Input allocation and float[] as Output allocation. I am not quite sure whether it is possible to use different types for Input and Output allocations in a RenderScript. I want to…
Settembrini
  • 1,366
  • 3
  • 20
  • 32
0
votes
1 answer

Sobel operator doesn't work with rectangle images

I try to implement Sobel operator in Java but the result is just some mix of pixels. int i, j; FileInputStream inFile = new FileInputStream(args[0]); BufferedImage inImg = ImageIO.read(inFile); int width = inImg.getWidth(); int…
micobg
  • 1,272
  • 6
  • 21
  • 35
0
votes
0 answers

Algorithm to sort image data

I'm trying to find the distance between some columns in a picture, in order to determine the distance the picture was taken from. Here is my code: I = rgb2gray(imread('vlc1.png')); im = edge(I,'sobel', 'vertical'); %Can also use…
Jacob
  • 29
  • 1
  • 6
0
votes
1 answer

Applying sobel filter on jpg picture with OpenCV 2.4.10 in Java

I'm trying to add sobel operator on a jpg picture with Java. I found example here: http://www.tutorialspoint.com/java_dip/applying_sobel_operator.htm but it doesn't work. Instead it prints black image. Could someone explain to me what I did wrong,…
0
votes
1 answer

Opencl Sobel filter implementation washed out in Float compared to Int

I'm looking at two implementations of a 3x3 vertical sobel filter.One does the computation in float, the other does it as long. For some reason the float version's edges show up in the output visibly washed out. I get that there'll be some precision…
Hashman
  • 367
  • 1
  • 10
0
votes
1 answer

How to colour the edges after using sobel filter?

I am using sobel filter for edge detection. How to illustrate the gradient direction with color coding. For example, horizontal edges with blue and vertical edges with yellow? Thank you.
indu
  • 177
  • 2
  • 11
0
votes
1 answer

OpenCV: Tutorial about Sobel Deritevatives doesn't work on Android, nullpointerexception

I tried to translate this C/C++ code to Java for Android. http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/sobel_derivatives/sobel_derivatives.html#sobel-derivatives Unfortunately, it doesn't work. My code:`public class MainActivity extends…
0
votes
2 answers

opencv: how to draw arrows on orientation image

I'm trying to perform orientation estimation on an input image in OpenCV. I used sobel function to get gradients of the image, and used another function called calculateOrientations, which I found on the internet, to calculate orientations. The…
E_learner
  • 3,512
  • 14
  • 57
  • 88
0
votes
1 answer

How does Matlab produce thin edges?

Im using sobel edge detection. Here is the sample image file if you have Matlab How does Matlab, by itself manage to achieve very thin edges like this one (using just the Matlab's edge function with 'sobel' as parameter) matlabsobel =…
vvavepacket
  • 1,882
  • 4
  • 25
  • 38
0
votes
0 answers

convolution with mars mips

i've been trying to implement a convulsion matrix using mips mars. and i've been having some issues generating it. So what i've got is this, i can open a image file (512x512) convert it to grayscale and then when i try to apply the convulsion i only…
jonniebigodes
  • 137
  • 3
  • 14
0
votes
0 answers

Sobel edge detection filter not correct output: can it be because of some parameters

I am using http://shakithweblog.blogspot.kr/2012/12/getting-sobel-filter-application.html for zynq processor. I am using his filter design in the PL part and running the hdmi test. I am inputting this file and my filtered output is coming like…
user3217310
  • 144
  • 1
  • 17
-1
votes
1 answer

How can I call the function for Sobel filter,Image processing in C#

I am trying to write a sobel filter.In a nutshell I should turn the image into the grayscale filter then I should apply sobel filter to the image.I found a code but I am not good at object oriented programming.How can I call the function when I push…
user17097848
-1
votes
2 answers

How to apply edge detection filters on colored images on Sobel?

I know how to do an image filter like the sobel-filter on 1 byte per pixel. However if you want to do it on RGB image with 24 bit per pixel, I don't know how to do it. What is the best way to do that without having to convert the RGB image to a 8…
WIOUW
  • 113
  • 1
  • 2
  • 7
-1
votes
1 answer

Abs method in emgucv 3.X

I use C# and EmguCV 3.X. I need Abs method for Sobel method to make postive negative edges. Is there any method like Abs() in emgucv 3.x? Processing time is very important for me. Any help will be appreciated.
Babak.Abad
  • 2,839
  • 10
  • 40
  • 74
-1
votes
2 answers

Image has white border after Sobel Edge Detection

I try to find edge of image. The my main problem is, why my edge detection has white border? Here the code : public static BufferedImage executeSobelEdgeDetection(BufferedImage inputImage, int threshold) { int width = inputImage.getWidth(); …
Mr. Mike
  • 453
  • 5
  • 23
1 2 3
12
13