Click here to Skip to main content
12,405,088 members (65,960 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#5
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
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 26 Mar 2011
Copyright © CodeProject, 1999-2016
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