How we can detect road from satellite images using DOG filter?

8 views (last 30 days)
following code can't detect road accurately.so pls help..
fontSize = 10;
I = imread('ds5.jpg');
grayImage = rgb2gray(I);
% Get the dimensions of the image.
% numberOfColorBands should be = 1.
[rows columns numberOfColorBands] = size(grayImage);
% Display the original gray scale image.
subplot(2,2,1);
imshow(I);
title('Original Image', 'FontSize', fontSize);
subplot(2,2,2);
imshow(grayImage);
title('grayscale Image', 'FontSize', fontSize);
gaussian1 = fspecial('Gaussian', 21, 15);
gaussian2 = fspecial('Gaussian', 21, 20);
dog = gaussian1 - gaussian2;
dogFilterImage = conv2(double(grayImage), dog, 'same');
subplot(2,2,3);
imshow(dogFilterImage, []);
title('DOG Filtered Image', 'FontSize', fontSize);
bw =(dogFilterImage);
subplot(2,2,4);
imshow(bw);
  3 Comments
Image Analyst
Image Analyst on 1 Apr 2014
The people in my link have the answers. Are their answers okay?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 27 May 2013
Either adjust your parameters, or use multiple spectral bands, or pick a successful algorithm published here:
22.2 Road Network Detection, Road Extraction Systems
22.2.1 Road Following, Road Tracking Systems, Connecting Fragments, Extracting Fragments
22.2.2 Road Network Model Integration, Updating, and Change Detection
22.2.3 Road Extraction in Radar, SAR, Lidar, Laser, Depth
  2 Comments
Tousif Zaman
Tousif Zaman on 7 Oct 2016
Would you please help me to get an algorithm from here? I can only see the names of some papers here but no access to the algorithm or code.
Image Analyst
Image Analyst on 8 Oct 2016
I don't have them either. You have to buy them from the publisher. If you can't figure out how to do that, try ScienceDirect.com or similar sites. If you still can't figure out how to get the paper, then look at the author's web site. Sometimes they post it there. At least you could ask them. Anyway, I don't have them.

Sign in to comment.

Categories

Find more on Labeling, Segmentation, and Detection in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!