matlab programming help required
1 回表示 (過去 30 日間)
古いコメントを表示
i want to divide an image into overlapping blocks and then apply svd is applied to each block to extract its corresponding singular values feature vectors ......pls can anyone tell me how to do this as i am unable to do it after trying so many times
7 件のコメント
Jan
2017 年 8 月 10 日
編集済み: Jan
2017 年 8 月 10 日
@charu shree: Explaining all steps is not useful here. It does not help, if we spend the time to understand the chain of steps. Concentrate on the step, in which you have a problem.
What exactly is "LL"? Is the dividing into the blocks the problem, or the application of the SVD? What exactly is "this third step"? What have you tried so far?
Give us a chance to help you.
回答 (1 件)
Image Analyst
2017 年 8 月 9 日
See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
For overlapping tiles, as opposed to adjacent, non-overlapping tiles, you can still use blockproc().
If the overlap is the entire tile except for one pixel (in other words the window moves over just one pixel at a time instead of in "jumps" of the whole tile size) then you can use nlfilter().
6 件のコメント
TUSHAR MURATKAR
2017 年 9 月 8 日
@ image analyst....can you tell me how many total number of blocks we will get if we divide an image having rows=486 and columns = 732 into overlapping blocks. The block size is 8x8. Any help in this regard is highly appreciated.
Image Analyst
2017 年 9 月 8 日
編集済み: Image Analyst
2017 年 9 月 8 日
There will be 61 blocks vertically and 92 blocks horizontally if there is no overlap. You could have up to 486 blocks veritcally and 732 blocks horizontally depending on the amount of overlap. In that extreme case (overlapping so much that the block just moves over one pixel), then you're probably better off using nlfilter(). In the majority of cases where people use blockproc(), they don't use an overlap. Why do you want an overlap instead of normal adjacent/touching tiling of the image?
I'm attaching a demo where you can specify overlap, but I really doubt you want any overlap. I'd bet you want just normal tiling and are getting confused with the terminology because when you visualize tiled blocks you think they overlap or cover the image, however with normal tiling the overlap of the tiles with each other is zero.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!