Possible Duplicate:
Calculating energy using MATLAB
Energy is defined as follows:
I'm planning to do the following:
1- Slide a window with dimensions 4X4 on an image
2- For each window calculate the energy
3- Find the histogram
For sliding the window over an image, I know that we can use nlfilter
, but this requires a fun
. Will this function be the energy? How can I use this with nlfiler
?
So, how do you think I can go with 1,2, and 3 in MATLAB?