LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image format conversion

Hi!
I would like to convert a huge set of .gif images I have
to .bmp format, and at the same time slightly change
(actually shrink) the dimension of the image itself.
Is there any IMAQ or similar function capable to do
that?

Thanks, Cristiano


--
Posted from mailhost.eutelsat.fr [193.104.229.34]
via Mailgate.ORG Server - http://www.Mailgate.ORG
0 Kudos
Message 1 of 8
(2,961 Views)
cbenzi@eutelsat.fr ("cristiano benzi") wrote:
>Hi!>I would like to convert a huge set of .gif images I have>to .bmp format,
and at the same time slightly change>(actually shrink) the dimension of the
image itself.>Is there any IMAQ or similar function capable to do>that?>>Thanks,
Cristiano>>>-- >Posted from mailhost.eutelsat.fr [193.104.229.34] >via Mailgate.ORG
Server - http://www.Mailgate.ORG

Cristiano,

Unfortunately IMAQ Vision/Labview doesn't support gif images because that
compression routine is patented (you need license, etc.). I ended up searching
the net for an activex control to do it, I found an executable that allows
you to convert large numbers of files at once (i.e. *.gif). you can run
it using the system exec.vi. If you can't find one on the
net (it took me
awhile) send me an email and I will forward it to you.

pat
0 Kudos
Message 2 of 8
(2,961 Views)
dans l'article sa6eab62.073@postit.eutelsat.fr, "cristiano benzi" à
cbenzi@eutelsat.fr a écrit le 24/01/01 10:15 :

> Hi!
> I would like to convert a huge set of .gif images I have
> to .bmp format, and at the same time slightly change
> (actually shrink) the dimension of the image itself.
> Is there any IMAQ or similar function capable to do
> that?
>
> Thanks, Cristiano
>
>
> --
> Posted from mailhost.eutelsat.fr [193.104.229.34]
> via Mailgate.ORG Server - http://www.Mailgate.ORG



Your would have to create a loop, where you read the .gif file, you shrink
it and than save it in .bmp format. Even for a huge number of images this
would then work very quickly, as for other image treatement issues.


Katja Zahringer
0 Kudos
Message 3 of 8
(2,961 Views)
Cristiano

I know that under LV6i there is a pallete called Sound & Graphics in which
it is possible to load JPG's, and BMP's etc. into a picture format. I also
know that in the same pallette there are functions to write to (at least)
JPG and BMP.
Once you have the picture data availabe as a 2-D array or an unflattened 1D
array you can do some calculations to shrink the image (for instance take
only the even pixels, which is a simple bu very effective algorithm, or
reduce the amount of colors). Once the array is shrinked you can write it
back to disk using one of the just mentioned vi's.
(Please let me know if you succeed.)

Regards,

Pieter Bosstad

"cristiano benzi" schreef in berichtnieuws
sa6eab62.073@postit.eutelsat.fr...
Hi!
I would like
to convert a huge set of .gif images I have
to .bmp format, and at the same time slightly change
(actually shrink) the dimension of the image itself.
Is there any IMAQ or similar function capable to do
that?

Thanks, Cristiano


--
Posted from mailhost.eutelsat.fr [193.104.229.34]
via Mailgate.ORG Server - http://www.Mailgate.ORG
0 Kudos
Message 4 of 8
(2,961 Views)
"Pieter Bosstad" wrote:
>Cristiano>>I know that under LV6i there is a pallete called Sound & Graphics
in which>it is possible to load JPG's, and BMP's etc. into a picture format.
I also>know that in the same pallette there are functions to write to (at
least)>JPG and BMP.>Once you have the picture data availabe as a 2-D array
or an unflattened 1D>array you can do some calculations to shrink the image
(for instance take>only the even pixels, which is a simple bu very effective
algorithm, or>reduce the amount of colors). Once the array is shrinked you
can write it>back to disk using one of the just mentioned vi's.>(Please let
me know if you succeed.)>>Regards,>>Pieter Bosstad>>"cristiano benzi"
schreef in bericht
nieuws>sa6eab62.073@postit.eutelsat.fr...>Hi!>I would like
to convert a huge set of .gif images I have>to .bmp format, and at the same
time slightly change>(actually shrink) the dimension of the image itself.>Is
there any IMAQ or similar function capable to do>that?>>Thanks, Cristiano>>>-->Posted
from mailhost.eutelsat.fr [193.104.229.34]>via Mailgate.ORG Server - http://www.Mailgate.ORG>>
0 Kudos
Message 5 of 8
(2,961 Views)
Pieter,

this is true, but I don't believe there is a vi to read gif images. please
let me know if I am wrong, as I am also interested in converting gif images.

pat

"Pieter Bosstad" wrote:
>Cristiano>>I know that under LV6i there is a pallete called Sound & Graphics
in which>it is possible to load JPG's, and BMP's etc. into a picture format.
I also>know that in the same pallette there are functions to write to (at
least)>JPG and BMP.>Once you have the picture data availabe as a 2-D array
or an unflattened 1D>array you can do some calculations to shrink the image
(for instance take>only the even pixels, which is a simple bu very effective
algorithm, or>reduce the amount of colors). Once the array is shrinked you
can write it>bac
k to disk using one of the just mentioned vi's.>(Please let
me know if you succeed.)>>Regards,>>Pieter Bosstad>>"cristiano benzi"
schreef in berichtnieuws>sa6eab62.073@postit.eutelsat.fr...>Hi!>I would like
to convert a huge set of .gif images I have>to .bmp format, and at the same
time slightly change>(actually shrink) the dimension of the image itself.>Is
there any IMAQ or similar function capable to do>that?>>Thanks, Cristiano>>>-->Posted
from mailhost.eutelsat.fr [193.104.229.34]>via Mailgate.ORG Server - http://www.Mailgate.ORG>>
0 Kudos
Message 6 of 8
(2,961 Views)
For file formats and such go to www.wotsit.org
the gif spec should be there and creating a reader should be easy :).

Martin

"patrick sincebaugh" wrote in message
news:3a7082e5@newsgroups.ni.com...
>
> Pieter,
>
> this is true, but I don't believe there is a vi to read gif images.
please
> let me know if I am wrong, as I am also interested in converting gif
images.
>
> pat
>
> "Pieter Bosstad" wrote:
> >Cristiano>>I know that under LV6i there is a pallete called Sound &
Graphics
> in which>it is possible to load JPG's, and BMP's etc. into a picture
format.
> I also>know that in the same pallette there are functions to write to (at
> least)>JPG and BMP.>Once you have the picture data availabe as a
2-D array
> or an unflattened 1D>array you can do some calculations to shrink the
image
> (for instance take>only the even pixels, which is a simple bu very
effective
> algorithm, or>reduce the amount of colors). Once the array is shrinked you
> can write it>back to disk using one of the just mentioned vi's.>(Please
let
> me know if you succeed.)>>Regards,>>Pieter Bosstad>>"cristiano benzi"

> schreef in berichtnieuws>sa6eab62.073@postit.eutelsat.fr...>Hi!>I would
like
> to convert a huge set of .gif images I have>to .bmp format, and at the
same
> time slightly change>(actually shrink) the dimension of the image
itself.>Is
> there any IMAQ or similar function capable to do>that?>>Thanks,
Cristiano>>>-->Posted
> from mailhost.eutelsat.fr [193.104.229.34]>via Mailgate.ORG Server -
http://www.Mailgate.ORG>>
0 Kudos
Message 7 of 8
(2,961 Views)
Info on the GIF LZW compression

Patent applied for 1983, granted 1985
Patents last 20 years from date of application
http://www.uspto.gov/web/offices/pac/doc/general/nature.htm
Patent # 4,558,302 www.uspto.gov

See Unisys site for more.
http://www.unisys.com/unisys/lzw/


Can your project wait 2 1/2 years ??


""cristiano benzi"" wrote in message
news:sa6eab62.073@postit.eutelsat.fr...
Hi!
I would like to convert a huge set of .gif images I have
to .bmp format, and at the same time slightly change
(actually shrink) the dimension of the image itself.
Is there any IMAQ or similar function capable to do
that?

Thanks, Cristiano


--
Posted from mailhost.eutelsat.fr [193.104.229.34]
via Mailgate.ORG Server - http://www.Mailgate.ORG
0 Kudos
Message 8 of 8
(2,961 Views)