https://github.com/red-data-tools/red-arrow-gdk-pixbuf
A library that provides conversion method between Apache Arrow and GDK Pixbuf
https://github.com/red-data-tools/red-arrow-gdk-pixbuf
Last synced: about 1 year ago
JSON representation
A library that provides conversion method between Apache Arrow and GDK Pixbuf
- Host: GitHub
- URL: https://github.com/red-data-tools/red-arrow-gdk-pixbuf
- Owner: red-data-tools
- License: other
- Created: 2018-03-04T02:09:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T00:21:37.000Z (almost 8 years ago)
- Last Synced: 2024-04-25T05:02:27.383Z (about 2 years ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Name
Red Arrow GDK Pixbuf
## Description
Red Arrow GDK Pixbuf is a library that provides converters between Apache Arrow's tensor data (`Arrow::Tensor`) and GDK Pixbuf's image data (`GdkPixbuf::Pixbuf`).
Red Arrow GDK Pixbuf adds `Arrow::Tensor#to_pixbuf` and `GdkPixbuf::Pixbuf#to_arrow`. `Arrow::Tensor#to_pixbuf` returns a `GdkPixbuf::Pixbuf`. `GdkPixbuf::Pixbuf#to_arrow` returns a `Arrow::Tensor`.
## Install
```text
% gem install red-arrow-gdk-pixbuf
```
## Usage
```ruby
require "arrow-gdk-pixbuf"
tensor.to_pixbuf # -> An object of GdkPixbuf::Pixbuf
pixbuf.to_arrow # -> An object of Arrow::Tensor
```
## Dependencies
* [Red Arrow](https://github.com/red-data-tools/red-arrow)
* [Ruby/GdkPixbuf2](https://github.com/ruby-gnome2/ruby-gnome2)
## Authors
* Kouhei Sutou \
## License
Apache License 2.0. See doc/text/apache-2.0.txt for details.
(Kouhei Sutou has a right to change the license including contributed
patches.)