gsj 1.0.1

Implementation of Geological Survey of Japan algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

#[derive(Debug, Error)]
pub enum NishiokaNagatsuError
{
 #[error("The width or height is not 256 [pixels]; Width = {w}, Height = {h}")]
 SizeIsNot256x256Pixels
 {
  w: u32, h: u32
 },

 #[error("The color type is not RGB8 or RGBA8. Color = {0:?}")]
 ColorTypeIsNotRgb8OrRgba8(image::ColorType)
}