problem convolving a 3d image - Programmers Heaven

Howdy, Stranger!

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

Categories

problem convolving a 3d image

chaitu_bitschaitu_bits Posts: 1Member
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=imread('a1.jpg');
img2=lm_classifier;
>> 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;

Comments

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