Azzera filtri
Azzera filtri

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 visualizzazioni (ultimi 30 giorni)
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.

Risposte (2)

Image Analyst
Image Analyst il 5 Gen 2014
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.

VINSHI K K
VINSHI K K il 22 Mar 2018
How can I divide an image of size [827 592] into overlaping blocks with block size=[252 252] and overlapping width=[64 64]

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by