There is currently an initiative to make better use of the TIFF format for astronomy. The idea is to save a FITS header in a standard way into a TIFF file. This make conversion between TIFF and FITS possible without loosing header information.
The FITS header is stored in the description tag of the TIFF file. The specification is here:
http://www.hnsky.org/astro-tiff.htm
Benefits:
The TIFF compression algorithm makes the files smaller
The files are readable by almost any image viewer.
The proposal is to make SharpCap TIFF files compatible with this specification.
Han
Better us of TIFF files, Astro-TIFF
Forum rules
'+1' posts are welcome in this area of the forums to indicate your support for a particular feature suggestion. Suggestions that get the most +1's will be seriously considered for inclusion in future versions of SharpCap.
'+1' posts are welcome in this area of the forums to indicate your support for a particular feature suggestion. Suggestions that get the most +1's will be seriously considered for inclusion in future versions of SharpCap.
- admin
- Site Admin
- Posts: 13344
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Better us of TIFF files, Astro-TIFF
Hi,
interesting... right now, SharpCap writes to TIFF using OpenCV, which does not give any way to set extra info when writing the image - it's about as much as you can do to specify the compression mode.
I will have to look and see if I can find a .NET/C# library capable of opening the written image file and setting the tag as required.
cheers,
Robin
interesting... right now, SharpCap writes to TIFF using OpenCV, which does not give any way to set extra info when writing the image - it's about as much as you can do to specify the compression mode.
I will have to look and see if I can find a .NET/C# library capable of opening the written image file and setting the tag as required.
cheers,
Robin
Re: Better us of TIFF files, Astro-TIFF
Hi Robin,
I familiar with Pascal but not C#. But googling around I think libtiff can do it:
http://www.libtiff.org/index.html
The tag is:
ImageDescription and is covered by the library as described here:
http://www.libtiff.org/support.html
ImageDescription 270 R/W
It is is just a string/text of up to 64k you can fill with anything so also a header.
The only minor thing is LZW (5) compression not the later Deflate (8) Looking into opencv.org it seems relying on libtiff so the situation doesn't change.
Han
I familiar with Pascal but not C#. But googling around I think libtiff can do it:
http://www.libtiff.org/index.html
The tag is:
ImageDescription and is covered by the library as described here:
http://www.libtiff.org/support.html
ImageDescription 270 R/W
It is is just a string/text of up to 64k you can fill with anything so also a header.
The only minor thing is LZW (5) compression not the later Deflate (8) Looking into opencv.org it seems relying on libtiff so the situation doesn't change.
Han
- admin
- Site Admin
- Posts: 13344
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Better us of TIFF files, Astro-TIFF
Hi Han,
I found a thing called ExifLibNet that looks like it might do what I want - add Exif tags to an existing file. I need to test it. I will also check the compression, I think I am currently using deflate...
cheers,
Robin
I found a thing called ExifLibNet that looks like it might do what I want - add Exif tags to an existing file. I need to test it. I will also check the compression, I think I am currently using deflate...
cheers,
Robin