Image windowing for doing emgm
1 view (last 30 days)
Show older comments
Hi I want to do windowing on an image then run EM algorithm on it.I used both blockproc and colfilt but both of them cause error. I face many error for using blockproc but one error:
Error using ==> reshape
To RESHAPE the number of elements must not change.
Error in ==> colfilt at 183
b(i*mb+brows,j*nb+bcols) = ..
for using colfilt. what do you recommend me to do?
Thank you
0 Comments
Answers (1)
Image Analyst
on 24 Jul 2012
I recommend you give enough information for us to be able to solve your problem.
2 Comments
Image Analyst
on 25 Jul 2012
I'm not sure what the question is, but when you scan an image with a window, yes, you are going to have to know how to handle the edge conditions where the window is "off" the edge of the image. This is a common situation in image processing and there are a variety of ways to handle partial windows, such as assuming image is zero for window pixels not over an image, or just ignoring those pixels, or renormalizing, etc.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!