MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

### Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

# Performing Quantization on images

Asked by FIR on 14 Dec 2012

I have performed dwt2 on a image ,and have its coefficient,and sampled it,now i want to quantise the cA,cH coefficients to single image ,please help

the size of cA after sampling ,is 128x128 and cH after sampling is 128x128,now i want to perform quantization on cA,cH and get a single image please help

## Products

Answer by Image Analyst on 14 Dec 2012

I don't know what you mean. There is a new imquantize() in the Image Processing Toolbox - I think it started in R2012b. See if that will do what you want.

If you want to do stitching of images instead, just put the in brackets:

```horizontallyStitchedImage = [image1, image2]
verticallyStitchedImage = [image1; image2]
```

Of course the dimension (number of rows or columns) along the stitching seam must be equal.

FIR on 15 Dec 2012

ok walter can yo provide syntax for compressive sensing

Image Analyst on 15 Dec 2012

I think compressive sensing is way beyond FIR's abilities, and possibly beyond mine (though I've never delved into it). FIR, as you should know, Walter does not need to provide syntax because the syntax is already provided by the Mathworks in comprehensive help documentation, even including numerous examples in the help, and lots of training and tutorials (even video tutorials by Doug Hull) via MATLAB Central web site, as well as classroom instructor-led training. There is so much training on syntax that I'm surprised you haven't encountered it yet. But since you haven't I suggest you start with the Getting Started section of the help, and Doug Hull's video tutorials or the section on syntax here.

Walter Roberson on 15 Dec 2012

There is no special syntax for compressive sensing.

There are no Mathworks provided library routines or toolboxes specifically for compressive sensing. You can find some example code in the File Exchange.