It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
originally posted by: jholt5638
Very cool about building your own observatory wish I had the resources for a project like that. I'm stuck with a 70mm refractor fitted with a homemade computer connection built from a old webcam and some rubber piping.
Its been a few years since I worked at the 1-Meter reflector at the University of Toledo but I don't recall FITS being used at all for actual images. We used them to catalog and study stellar spectra of objects. It also stored other data about the object but I don't think a actual image is contained within a FITS file.
originally posted by: ngchunter
Why don't you want to use the FITS image format? You do realize that the format is a standard convention of most astronomy related software, right? Image stacking programs, photometry software, astrometry software is all designed to use the FITS image format. quote]
Yes...well that's the thing; I do want to use it...its just that I'm not finding an image format of any sort.
You talk about the raw data that comes from a sensor, such as a CCD...FITS does not encapsulate that kind of data. At least not that I've been able to find.
Sure FITS will encapsulate what they are calling "image" data, but, when they talk about an "image" they are referring to a memory image, as opposed to a visual image.
I need to encapsulate 24 bit color data. which is actually a "Struct" consisting of three bytes; Red, Green, and Blue. And while I can "stream" JPEG data into a FITS "ImageHDU" I would still need to know the format of the (visual) image data (i.e. JPG, PNG, etc.).
And of course IF I wished to convert the (visual) image into something that FITS CAN handle; I will need to convert It into 3 double (float) arrays, and save them out individually...and of course to actually display those images they have to be re-assembled.
And, hence my issue...
originally posted by: chr0naut
a reply to: tanka418
The FITS format is a data container for scientific data, including 3 dimensional images, (say with astrometric and graphical image data combined).
FITS also includes an ASCII character (plain text) header so that one can get meta-information about the data without viewing it (which may possibly be misleading if the format of the data is misunderstood). Metadata may include equipment calibration details, spatial direction and location of the image, equipment used, time of capture & etc.
Other image formats are purely for 2 dimensional images and also often are lossy, something that is unwanted when employing scientific data at the limits of resolution.
FITS is not efficient and does not attempt to attain efficiency. It is raw data untouched and commented fully.
It doesn't seek to compress the images for transmittal.
In modern anecdote; a FITS file tells more than 1000 words.
originally posted by: tanka418
Sure FITS will encapsulate what they are calling "image" data, but, when they talk about an "image" they are referring to a memory image, as opposed to a visual image.
originally posted by: ArMaP
a reply to: tanka418
I don't really understand what you want to do, but have you looked here?
originally posted by: ngchunter
originally posted by: tanka418
Sure FITS will encapsulate what they are calling "image" data, but, when they talk about an "image" they are referring to a memory image, as opposed to a visual image.
What on earth are you talking about? It's raw (image) data, the values of each pixel (or even higher dimensional 3d data as mentioned above) are encoded in a raw format.
www.digitalpreservation.gov...
originally posted by: tanka418
originally posted by: ArMaP
a reply to: tanka418
I don't really understand what you want to do, but have you looked here?
What I'm trying to do...
Encapsulate raw image data from a device like a CCD in a FITS file. The raw data from a CCD is typically a 24 bit data structure that contains 3 - 8 bit unsigned integers.
The FITS system has no provision to store these structs in a native manner.
What it appears I will have to do is build three 2 dimensional arrays to contain the Red, Green, and Blue image data separately. And then trust that any "other party" software saves this data the same way...otherwise it will "look" damn funny.
I anticipate much frustration on this...
originally posted by: tanka418
originally posted by: ngchunter
originally posted by: tanka418
Sure FITS will encapsulate what they are calling "image" data, but, when they talk about an "image" they are referring to a memory image, as opposed to a visual image.
What on earth are you talking about? It's raw (image) data, the values of each pixel (or even higher dimensional 3d data as mentioned above) are encoded in a raw format.
www.digitalpreservation.gov...
What am I talking about; I'm talking about how that data is represented, or "encoded" in your computer.
Image data from your CCD is a data structure that contains 24 bit color data , unless of course you're using a black and white CCD. In which case it is still 24 bit color data with all three colors containing the same unsigned integer.
originally posted by: chr0naut
Although you could use three 2D arrays, that is complicating things unnecessarily.
Why not create a single 2D array with each data record being 24 bits or a 32bit word (with alpha value).
You then simply concatenate the 8 bit 'color' integers into a single pixel record. No need to separate the color values as the 8 bit unsigned integer format is implicit. The values can then be separated at the display end with some XORing or some modulo math, i.e: store the picture data pretty much exactly as it comes from the CCD chipset. Frame size and details can stored in the header and/or implicitly in the array dimensions. Easy.
originally posted by: nataylor
I take it you've read the official Definition of the Flexible Image Transport System?
fits.gsfc.nasa.gov...
originally posted by: tanka418
originally posted by: chr0naut
Although you could use three 2D arrays, that is complicating things unnecessarily.
Why not create a single 2D array with each data record being 24 bits or a 32bit word (with alpha value).
Mainly because GDI+, the Microsoft library responsible for putting images on your screen, takes the struct I've mentioned. This struct contains 24 bits of data, but it is formatted as three 8 bit integers, and all of the library routines (methods) depend on this "struct". The only option I would have is to try to treat the value as a 24 bit binary...
And while this might work, I don't know IF it is how others do it...I'm still searching for that data.
You then simply concatenate the 8 bit 'color' integers into a single pixel record. No need to separate the color values as the 8 bit unsigned integer format is implicit. The values can then be separated at the display end with some XORing or some modulo math, i.e: store the picture data pretty much exactly as it comes from the CCD chipset. Frame size and details can stored in the header and/or implicitly in the array dimensions. Easy.
How does One concatenate an integer?