Roberts Cross Edge Detection and Implementing in Matlab

How It Works

How to Detect Edges with Roberts Operator in Matlab

im = imread('image.jpg');im_d = im2double(im);
im = rgb2gray(im_d);
hx = [+1 0; 0 -1];
hy = [0 +1; -1 0];
Gx = imfilter(im, hx);
imshow(Gy); figure;
Gy = imfilter(im, hy);
imshow(Gx); figure;
Gm = sqrt(Gx.^2 + Gy.^2);




Someone who likes dancing with codes.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Optimizer, losses and activation functions in fully connected neural networks.

Predicting Google Stock Price

Learning Logistic Regression

Confusion Matrix — Not So Confusing!

Data Preprocessing for Loans data

Reading Comprehension with GPT-3

A Beginners Guide to Computer Vision (Part 1)-Filtering

The Linear Regression Algorithm, Explained

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Someone who likes dancing with codes.

More from Medium

How to Create Synthetic Dataset for Computer Vision (Keypoint Detection)

YOLO — You Only Look Once

Image Classification made easy