How to partition the image into blocks of different sizes and In each block, take the angles of all black points with respect to the bottom left corner and calculate the summation and normalize it?
2 ビュー (過去 30 日間)
古いコメントを表示
Please help me. I have pre-processed the image but i am not able to do this. If not possible then at least tell me how to partition the image and take the angles. Thanks in advance.
0 件のコメント
回答 (2 件)
Image Analyst
2014 年 1 月 5 日
For the partitioning part, see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
For the angle, get the delta X and delta Y from the rows and columns of all the black pixels
[rows, columns] = find(~binaryImage);
Then get angles
angles = atand2d(deltaY/deltaX);
Of course you figure out what delta x and y are from the particular pixel to the lower right corner of the current blobk you're at. Not hard. Give it a try.
1 件のコメント
VINSHI K K
2018 年 3 月 22 日
How can I divide an image of size [827 592] into overlaping blocks with block size=[252 252] and overlapping width=[64 64]
1 件のコメント
Image Analyst
2018 年 3 月 22 日
See my demo of blockproc with overlapping block positions. Adapt as needed.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!