Click here to Skip to main content
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 11: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 OriginalGriff 250
1 George Jonsson 175
2 Jochen Arndt 150
3 Kornfeld Eliyahu Peter 149
4 PIEBALDconsult 110
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 26 Mar 2011
Copyright © CodeProject, 1999-2014
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