NSCT for a non-square matrix sized 2D image?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm doing fusion of images in Nonsubsampled contourlet transform(NSCT) using NSCT toolbox.
The NSCT toolbox is available with mathworks file exchange.It includes a densct demo program which performs the decomposition and reconstruction of an image "zoneplate.png" and provides the coefficients.Its a square matrix image.
The program is working well only for a square matrix (i.e) image of same size of row and column(For example Dimension as 512x512 0r 256x256).
But if the image is not square matrix as mentioned before and its something of the type as (i.e)504X310 or 128X256 of different size of row and column I GET ERROR...
EXAMPLE: Name of my program "raz_densct.m". Below is what I get in the Matlab command window.(Matlab7.7.0 R2008b)
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> symext at 29
yT = [fliplr(x(:,1:ss)) x x(:,n :-1: n-p-s1+1)];
Error in ==> nsfbdec at 26
y0 = conv2(symext(x,h0,shift),h0,'valid');
Error in ==> nsctdec at 108
[xlo, xhi] = nsfbdec(x, h1, h2, i-1) ;
Error in ==> raz_decnsct at 33
coeffs1 = nsctdec( double(im1), nlevels, dfilter, pfilter );
How is it possible to solve the prob?? How to get the coeffs for a non-square matrix sized image?
Kindly reply.
0 comentarios
Respuestas (3)
Walter Roberson
el 10 de Mzo. de 2011
Every example that I can find for Laplacian Pyramids (the first step in NSCT) shows square images. The upsampling produces a 2^N by 2^N image after N steps, which is a more restrictive condition yet.
So far, though, I have not found anything explicitly saying that square or power-of-2 images are required.
3 comentarios
Walter Roberson
el 11 de Mzo. de 2011
I do not say that: I say that in the time I spent looking at the papers and diagrams, everything was square, but I did not say anything written down saying that they *must* be square. I did not understand the mathematics nearly well enough to work through to see if it could be extended to non-square matrices.
Razia
el 20 de Mzo. de 2011
1 comentario
Walter Roberson
el 20 de Mzo. de 2011
Interesting. That's a 4 x 3 aspect ratio. Perhaps other 4 x 3 aspect ratio images would work.
Subash
el 4 de Mzo. de 2014
am also using this toolbox,, but am not so gud in matlab,, may i know procedure to run this process,plzz razia.
0 comentarios
Ver también
Categorías
Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!