You are here : matlab → Image Processing → corr2
# corr2() - Image Processing

### Syntax

### Example

### Output / Return Value

### Limitations

### Alternatives / See Also

### Reference

r = corr2(A,B) returns the correlation coefficient r between A and B, where A and B are matrices or vectors of the same size. r is a scalar double.r = corr2(gpuarrayA,gpuarrayB) performs the operation on a GPU. The input images are 2-D gpuArrays of the same size. r is a scalar double gpuArray. This syntax requires the Parallel Computing Toolboxâ„˘.

r = corr2(A,B)r = corr2(gpuarrayA,gpuarrayB)

You can give an example if you know one.