Does anyone know how to convert image from jpeg file to CSV ? If there is a way to do it using matlab that will be nice. Thanks!!!
|
|
0
|
|
|
|
Reply
|
Meskerem
|
10/13/2010 4:58:04 PM |
|
"Meskerem " <mjibitu@yahoo.com> wrote in message <i94oes$ltc$1@fred.mathworks.com>...
> Does anyone know how to convert image from jpeg file to CSV ? If there is a way to do it using matlab that will be nice. Thanks!!!
Try this:
A = imread('Sunset.jpg'); % replace with your image filename
csvwrite('Sunset.csv', A)
if you want to view the image in matlab;
image(A)
|
|
0
|
|
|
|
Reply
|
John
|
10/13/2010 5:12:05 PM
|
|
"John " <jrazzano@usc.edu> wrote in message <i94p95$i12$1@fred.mathworks.com>...
> "Meskerem " <mjibitu@yahoo.com> wrote in message <i94oes$ltc$1@fred.mathworks.com>...
> > Does anyone know how to convert image from jpeg file to CSV ? If there is a way to do it using matlab that will be nice. Thanks!!!
>
> Try this:
>
> A = imread('Sunset.jpg'); % replace with your image filename
> csvwrite('Sunset.csv', A)
>
> if you want to view the image in matlab;
>
> image(A)
I keep getting errors . This is what i did
A=imread('my file name.jpg');
any comments ?
|
|
0
|
|
|
|
Reply
|
Meskerem
|
10/13/2010 6:55:09 PM
|
|
"Meskerem " <mjibitu@yahoo.com> wrote in message <i94vad$24g$1@fred.mathworks.com>...
> "John " <jrazzano@usc.edu> wrote in message <i94p95$i12$1@fred.mathworks.com>...
> > "Meskerem " <mjibitu@yahoo.com> wrote in message <i94oes$ltc$1@fred.mathworks.com>...
> > > Does anyone know how to convert image from jpeg file to CSV ? If there is a way to do it using matlab that will be nice. Thanks!!!
> >
> > Try this:
> >
> > A = imread('Sunset.jpg'); % replace with your image filename
> > csvwrite('Sunset.csv', A)
> >
> > if you want to view the image in matlab;
> >
> > image(A)
> I keep getting errors . This is what i did
> A=imread('my file name.jpg');
> any comments ?
The above should work and yield an integer array. So what errors are you getting?
|
|
0
|
|
|
|
Reply
|
Barry
|
10/13/2010 7:18:03 PM
|
|