diff options
author | Thomas White <taw@physics.org> | 2010-06-02 14:19:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-02 14:19:25 +0200 |
commit | 58b6ae91c195b88604373dfb61c54b49ab6e3ddb (patch) | |
tree | d654e420233f9835c054e9e5e4b1667483966f89 /src/hdf5-file.c | |
parent | 09336f631b1e420ccf8809413e7811092d509724 (diff) |
Bad pixel mask is actually 16 bits
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index d635923d..f83c047c 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -318,7 +318,7 @@ int hdf5_read(struct hdfile *f, struct image *image) { herr_t r; float *buf; - uint8_t *flags; + uint16_t *flags; hid_t mask_dh; image->height = f->nx; @@ -338,8 +338,8 @@ int hdf5_read(struct hdfile *f, struct image *image) if ( mask_dh <= 0 ) { ERROR("Couldn't open flags\n"); } else { - flags = malloc(sizeof(uint8_t)*f->nx*f->ny); - r = H5Dread(mask_dh, H5T_NATIVE_B8, H5S_ALL, H5S_ALL, + flags = malloc(sizeof(uint16_t)*f->nx*f->ny); + r = H5Dread(mask_dh, H5T_NATIVE_B16, H5S_ALL, H5S_ALL, H5P_DEFAULT, flags); if ( r < 0 ) { ERROR("Couldn't read flags\n"); |