How to divide an image into blocks?
1 回表示 (過去 30 日間)
古いコメントを表示
I am new to MATLAB.
I am trying to write code which will divide the image in nonoverlaping blocks of size 5*5. I am supposed to do operations on specific blocks like getting the value of the center pixel of block and count the number of black and white pixels in each block.
Thanks in advance!
0 件のコメント
回答 (2 件)
Image Analyst
2014 年 1 月 18 日
See the FAQ for a couple of different methods: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
0 件のコメント
hamed abdulaziz
2014 年 1 月 18 日
There is already an excellent answer from excellent Mathworks answers, may be useful:
2 件のコメント
ROSE MARY KATIKALA
2017 年 2 月 9 日
1. Read the image. 2. Image is divided in to sub-blocks of size M x N 3. For each sub block, standard deviation is calculated to increase intensity of image object. 4. Global threshold is applied for each sub block which has standard deviation as greater than one. 5. The above process is repeated for each and every sub block of entire image.
i need this ..can u please help me out..
Image Analyst
2017 年 2 月 9 日
See my attached demos that can do that, with very small modifications.
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!