GithubHelp home page GithubHelp logo

brampf / fitskit Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 6.0 180 KB

A native iOS library to compute vector / image data of FITS files

License: MIT License

Swift 100.00%
swift-library file-format fits fits-files fits-image

fitskit's Introduction

Stars Twitter


FitsRaw now on Testflight!

FitsRaw is a leightweight viewer app for your iPad to view files in the [FITS file format](https://fits.gsfc.nasa.gov) commonly used in Astrophotography. For more information about the FITS file format head over to [NASA](https://fits.gsfc.nasa.gov/fits_documentation.html) of have a look ad [Wikipedia](https://en.wikipedia.org/wiki/FITS)

FitsRaw is currently availabe on Testflight. In order to join, just click ot the following URL: https://testflight.apple.com/join/Hr2K1Wg8


  • Open FITS files and renders an image for the data unit of the primary HDU as image data
  • Auto-detection of Grayscale, RGB and RGGB image data (particularly for the ZWO ASI294MC camera)
  • Display the content of the header unit for the currently selected HDU
  • Preliminary rendering of tables (Bintable only only display the first value of an array)
  • Placeholder for empty HDUs or Image HDUs with less than 1 or more than 3 dimensions
  • Rendering of thumbnails for the data unit of the primary HDU of FITS files in the file browser
  • Rendering of preview for the data unit of the primary HDU for apples quicklook

FITS Raw currently supports only iPad OS and is tested with a rather old & slow iPad 5 on iPad OS 14.5.

For the latest updates and your feedback please see Discussions

FITSCore FITSKit
FITSCore FITSKit

Java Swift Rust

fitskit's People

Contributors

brampf avatar dieudonnewillems avatar matteolesinigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fitskit's Issues

Build question

FITSKit commit 187dc49 isn't building for me. The problem is at line 73 in AnyImageHDU
self.set(width: Int(buffer.width), height: Int(buffer.height), layers: 3, dataLayout: .UINT8, data: data)

Maybe the last FITSCore commit eliminated set() with the signature it wants?

Support for RGGB pixel format from an astrophotography camera (ASI, using a Sony color chip)

Next challenge ... My FITS images are in the RGGB pixel format from an astrophotography camera (ASI, using a Sony color chip).

  1. I like to convert the FITS with either CoreImage or with CVPixelBufferCreate... to a raw image in order to apply all the nice RawFilters from iOS/Swift to them.

I'm completely stuck. I can create a pixel buffer with the kCVPixelFormaType_14Bayer_RGGB, but the quickview in XCode only shows me a grayscale image. I am not able to convert it to a CIImage or CGImage showing colors, it is either nil or remains a grayscale image that is not de-bayered / demosaiced.

  1. Looking at your RGB conversion of the FITS (FITSBytesTool), I noticed the RGB are consecutively ordered (3x layersize). This is not the case for me, where I have a Bayer matrix. Re-writing this function to separate the pixel colors, does result in a color image, but the colors are all wrong...

Any hint to solve either problem would be highly appreciated.

Originally posted by @Planet30 in brampf/fitscore#8 (reply in thread)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.