Tim created another superb solution. The highlights are an elegant center of square's determination using ndgrid. The crux of his method is a convolution for each square not using "same" with an interesting centroid kernel. The comparison between all square convolutions for all rotations utilizes a concise norm metric function. The method should work on non-binary images. The best six matches from the 180x180 upper triangle error array are handily converted into the output format. Thank You Tim for this elegant solution.
4179 Solvers
Replace all zeros and NaNs in a matrix with the string 'error'
90 Solvers
Create incremental spiral WITHOUT USING EVAL or FEVAL
40 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
553 Solvers
Give me Hamming on five, hold the mayo
34 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!