Re: Error =/



Hugo wrote:
brain = imread('81am','jpg');
figure(1);
imshow(brain);
Fbrain = fft2(brain);
Fv = fftshift(log(abs(Fbrain)+1));
figure(2);
out = uint8(Fv * 255/max(Fv(:)));
imshow(out);
imwrite(out, 'fft_brain.jpg');
[h,w] = size(brain);
passa_baixas = baixas(100, 4, h, w);
figure(3);
out = uint8(passa_baixas * 255/max(passa_baixas(:)));
imshow(out);
imwrite(out, 'passa_baixas.jpg');
produto = Fbrain .* passa_baixas;

I'm getting a error in the last line, it says:

??? Error using ==> .*
Number of array dimensions must match for binary array op.

I tried everything I know but didn't find out the answer.

What do size(Fbrain) and size(passa_baixas) return?

That should lead to the problem and one would assume a way to fix it...

--
.



Relevant Pages

  • Re: Accessing control in indexed mode
    ... In VS 2002 and 2003, there is no designer support for that, but you can ... easily create your own array of controls. ... Hugo ...
    (microsoft.public.dotnet.languages.vc)
  • [PULL REQUEST] md patches for merge window
    ... - raid5 cleanups from Dan Williams ... general code cleanup from Andre Noll ... md: md_ioctl: Fix misleading indentation. ... Don't reject HOT_REMOVE_DISK request for an array that is not yet started. ...
    (Linux-Kernel)
  • Re: JNI with multidimensional Byte Array
    ... First I strongly suggest that you compile ... for a 2-D char array. ... ReleaseCharArrayElements() should be ReleaseByteArrayElements, and ... can't help you fix the code you didn't post. ...
    (comp.lang.java.programmer)
  • Raid 10 Problems?
    ... Created a software raid 10 array. ... fix. ... Checking inodes, blocks, and sizes ...
    (Linux-Kernel)
  • Re: PDO prepared statements
    ... the above code dosn't even substitute 4 for:id. ... the way around it is to send the array with the correct values in ... How comes you are running a query and you don't know what its parameters are? ... Let's assume you're just patching old buggy third-party code: you didn't write it, your boss told you to fix it ASAP, you don't understand how it works and you don't have time to rewrite the whole thing. ...
    (comp.lang.php)