Sobel convolution kernel filter?

1575
3
04-01-2012 06:13 AM
MartinMokros
New Contributor
Hi,

I'm working with Landsat images and I would like run Sobel convolution kernel filter to find out borders of forests. But I don't have any experiences, maybe is simple and ArcGIS has some extension for this kind of operation or is some better way to find out borders (edges) of forests? Please help me.

Best regards

Martin Mokros
0 Kudos
3 Replies
TarunJaiswal
Esri Contributor
Hi Martin,

Please take a look at the following forum posting:

Code for Sobel Kernel Filter?

Hope this helps.

Thank you.
0 Kudos
MartinMokros
New Contributor
Hi,

thank you, it really helps. But I have some issues with kernel files. In focal statistics I have some errors: ERROR 000622: Failed to execute (FocalStatistics). Parameters are not valid. and ERROR 010391: Kernel file is not provided or does not exist.

I don't understand why is that because those are my kernel files:

3 3
-1 0 1
-2 0 2
-1 0 1

and

3 3
1 2 1
0 0 0
-1 -2 -1

I don't know what I'm doing wrong. And I tried saved it in different formats and I had same errors.

Thank you

Best regards
0 Kudos
MartinMokros
New Contributor
Problem solved I had input raster without spatial references

So I used focal statistics I put weight for neighbourhood and made kernel file in notepad and it works 🙂

Thanks
0 Kudos