Click here to Skip to main content
11,638,173 members (77,289 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#5
Hai,
I am looking for implementing sliding window concept on images.
How to select the window and what size is preferable.I am working on 256x256 size image.
Or atleast someone could explain how to choose sliding window and implement on a matrix(2-d array)
Posted 25-Mar-11 10:02am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I assume you are talking about the kernel window operations like image filters. The size of the window depends on the purpose, how many minimum samples your kernel function needs and the object resolution of the image.

For example assume your image has small small circles of 5 x 5 pixel area. If your windows size is 5 x 5, in a smoothing operation using a mean function then those circles get smoothed. But if your window size is 10 x 10 then the circles may disappear. So it depends on the purpose whether you want remove the circles or not.

So the window size depends on purely specific purpose, a general rule may not work always.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 jyo.net 348
1 Sergey Alexandrovich Kryukov 314
2 stibee 288
3 OriginalGriff 190
4 Mika Wendelius 185
0 OriginalGriff 9,051
1 Sergey Alexandrovich Kryukov 8,773
2 Mika Wendelius 7,034
3 Suvendu Shekhar Giri 2,425
4 F-ES Sitecore 2,408


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 26 Mar 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100