problem convolving a 3d image

I need to convolve a 3d image with LM filter bank. Here the function lm_classifier returns the LML filter bank of size 49x49x48. a1 is a 3d image of dimensions 25x25x3. I am getting the following error on using conv2()

>> img1=double(img1);
>> img3=conv2(img2,img1,'valid');
??? Function 'conv2' is not defined for values of class 'double' and attributes 'full 3d real'.

Someone please reply at the earliest;


  • As says the matlab help conv2 "computes the [u]two-dimensional[/u]
    convolution of matrices A and B"
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion