From: Jeanette on
I keep getting the following error message when running a code in which I'm using a cross correlation method. Can't figure out why this error starting happening:

The values of TEMPLATE cannot all be the same.

Error in ==> normxcorr2>ParseInputs at 242
checkIfFlat(T);

Error in ==> normxcorr2 at 55
[T, A] = ParseInputs(varargin{:});

Error in ==> AdamCorrelationTracker9 at 212
corr2=normxcorr2(sub_Im1(:,:,1),sub_Im2(:,:,1));

Any clues?
From: Wayne King on
"Jeanette " <jeanette_hariharan(a)yahoo.com> wrote in message <i1n5ka$o9q$1(a)fred.mathworks.com>...
> I keep getting the following error message when running a code in which I'm using a cross correlation method. Can't figure out why this error starting happening:
>
> The values of TEMPLATE cannot all be the same.
>
> Error in ==> normxcorr2>ParseInputs at 242
> checkIfFlat(T);
>
> Error in ==> normxcorr2 at 55
> [T, A] = ParseInputs(varargin{:});
>
> Error in ==> AdamCorrelationTracker9 at 212
> corr2=normxcorr2(sub_Im1(:,:,1),sub_Im2(:,:,1));
>
> Any clues?

Hi Jeanette, What does sub_Im1(:,:,1) look like? Is it a matrix consisting of identical values for each element?

Wayne