Got Questions? Get Answers.
Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Converting a .bmp file to an int file

Subject: Converting a .bmp file to an int file

From: Ali Khan

Date: 23 May, 2013 22:27:09

Message: 1 of 5

Help!

I would like to read a file as bmp and then convert it to an int file!

Thanks,
Ali

Subject: Converting a .bmp file to an int file

From: Ali Khan

Date: 24 May, 2013 02:07:07

Message: 2 of 5

Hi Ali,

Nevermind. It is not possible in Matlab. Download Mathematica and go from there.

Sincerely,
Ali

"Ali Khan" <alikhan@email.arizona.edu> wrote in message <knm53t$2g9$1@newscl01ah.mathworks.com>...
> Help!
>
> I would like to read a file as bmp and then convert it to an int file!
>
> Thanks,
> Ali

Subject: Converting a .bmp file to an int file

From: Alexander

Date: 24 May, 2013 02:13:07

Message: 3 of 5

You are correct Ali. Mathematica is the only way to go. You must be trying to run illumination simulations on CodeV


"Ali Khan" <alikhan@email.arizona.edu> wrote in message <knmi0b$7j6$1@newscl01ah.mathworks.com>...
> Hi Ali,
>
> Nevermind. It is not possible in Matlab. Download Mathematica and go from there.
>
> Sincerely,
> Ali
>
> "Ali Khan" <alikhan@email.arizona.edu> wrote in message <knm53t$2g9$1@newscl01ah.mathworks.com>...
> > Help!
> >
> > I would like to read a file as bmp and then convert it to an int file!
> >
> > Thanks,
> > Ali

Subject: Converting a .bmp file to an int file

From: Steven_Lord

Date: 24 May, 2013 14:24:54

Message: 4 of 5



"Ali Khan" <alikhan@email.arizona.edu> wrote in message
news:knm53t$2g9$1@newscl01ah.mathworks.com...
> Help!
>
> I would like to read a file as bmp and then convert it to an int file!

Reading in a BMP file is possible with IMREAD.

http://www.mathworks.com/help/matlab/ref/imread.html

I'm not familiar with the INT file format. There are several possibilities
listed here:

http://filext.com/file-extension/INT

If you know the specific INT format in which you want to write your data,
you can check appropriate MathWorks toolboxes:

http://www.mathworks.com/products/

or the File Exchange to try to locate a writer:

http://www.mathworks.com/matlabcentral/fileexchange/

or use the low-level file I/O functions to create a file writer for that
format.

http://www.mathworks.com/help/matlab/low-level-file-i-o.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Converting a .bmp file to an int file

From: Barry Williams

Date: 24 May, 2013 17:01:09

Message: 5 of 5

"Steven_Lord" <slord@mathworks.com> wrote in message <knnt7m$ck7$1@newscl01ah.mathworks.com>...
>
>
> "Ali Khan" <alikhan@email.arizona.edu> wrote in message
> news:knm53t$2g9$1@newscl01ah.mathworks.com...
> > Help!
> >
> > I would like to read a file as bmp and then convert it to an int file!
>
> Reading in a BMP file is possible with IMREAD.
>
> http://www.mathworks.com/help/matlab/ref/imread.html
>
> I'm not familiar with the INT file format. There are several possibilities
> listed here:
>
> http://filext.com/file-extension/INT
>
> If you know the specific INT format in which you want to write your data,
> you can check appropriate MathWorks toolboxes:
>
> http://www.mathworks.com/products/
>
> or the File Exchange to try to locate a writer:
>
> http://www.mathworks.com/matlabcentral/fileexchange/
>
> or use the low-level file I/O functions to create a file writer for that
> format.
>
> http://www.mathworks.com/help/matlab/low-level-file-i-o.html
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

This may help as well: http://www.agi.com/resources/help/online/stk/source/stk/importfiles-04.htm

Barry

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us