gonum / hdf5

hdf5 is a wrapper for the HDF5 library
BSD 3-Clause "New" or "Revised" License
131 stars 33 forks source link

support for H5Lexist, Resize, Create&Read true colour images #56

Closed zyc-sudo closed 4 years ago

zyc-sudo commented 4 years ago

Hi, Please take a look. I cleaned up my git history and limit 1 feature per commit:

  1. func (g *CommonFG) CheckLink(name string) error {} A wrapper around C's H5Lexists returns error if the given link(can be group, dataset or link) not exist

  2. func (s *Dataset) Resize(dims []uint) error {} A wrapper around C's H5Dset_extent Has some basic checking about the extended dimension

  3. func (g *CommonFG) CreateTrueImage(name string, img image.Image) error {} Create a image dataset which can be viewed as image directly by hdf5 viewer Wraps around H5IMmake_image_24bit

  4. func (g *CommonFG) ReadTrueImage(name string) (image.Image, error) {} Read a image dataset into image.Image struct Wraps around H5IMget_image_info and H5IMread_image