Gets the number of palettes associated to an image.
Procedure:
H5IM_GET_NPALETTES(loc_id, image_name, npals)
Signature:
herr_t H5IMget_npalettes( hid_t loc_id, const char *image_name, hssize_t *npals )
subroutine h5imget_npalettes_f(loc_id, dset_name, npals, errcode)
implicit none
integer(HID_T), intent(IN) :: loc_id ! file or group identifier
character(LEN=*), intent(IN) :: dset_name ! name of the dataset
integer(HSIZE_T), intent(INOUT) :: npals ! palettes
integer :: errcode ! error code
end subroutine h5imget_npalettes_f
Parameters:
hid_t loc_id | IN: Identifier of the file or group in which the image dataset is located. |
const char *image_name | IN: The name of the image dataset. |
hssize_t *npals | OUT: The number of palettes. |
Description:
H5IMget_npalettes
gets the number of palettes associated to an image specified by image_name
.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
--- Last Modified: December 04, 2017 | 07:19 AM