Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900