Sign in

Not a member? | Forgot your Password?

Search matlab

Search tips

Subscribe to matlab

Search tips

Free PDF Downloads

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

C++ Tutorial

Introduction of C Programming for DSP Applications

Fixed-Point Arithmetic: An Introduction

Cascaded Integrator-Comb (CIC) Filter Introduction

Discussion Groups

FIR Filter Design Software

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | Raw data to image format conversion

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread



Is this thread worth a thumbs up?

0

Raw data to image format conversion - anujack_21 - Nov 13 3:10:00 2003

Hi all,

Can a raw data file be stored as an image file without any loss?

I read a raw data file into matlab using fread command( the file size
is around 35MB and is 12 bit precision).When I used imwrite to save
this raw data file to an image file, there was loss of data i.e, the
raw data file(35MB) and the .tiff file(17MB) were not of the same
size.And the presision of the .tiff file was only 8 bits as against
the raw data which was 12 bits.

I would like to know if there is a way in matlab to write the raw
data file to an image file without any kind of loss or compression.

Thanks in advance,
Anuradha Agatheeswaran.








Re: Raw data to image format conversion - navaneetha krishnan - Nov 14 21:48:00 2003

Try imwrite with 'compression' option set to 'none'.

Navan

--- anujack_21 <> wrote:
> Hi all,
>
> Can a raw data file be stored as an image file
> without any loss?
>
> I read a raw data file into matlab using fread
> command( the file size
> is around 35MB and is 12 bit precision).When I used
> imwrite to save
> this raw data file to an image file, there was loss
> of data i.e, the
> raw data file(35MB) and the .tiff file(17MB) were
> not of the same
> size.And the presision of the .tiff file was only 8
> bits as against
> the raw data which was 12 bits.
>
> I would like to know if there is a way in matlab to
> write the raw
> data file to an image file without any kind of loss
> or compression.
>
> Thanks in advance,
> Anuradha Agatheeswaran. __________________________________