IM: KRN - IM Kernel File Format

IM - An Imaging Tool

KRN - IM Kernel File Format
[File Formats]

Description

Textual format to provied a simple way to create kernel convolution images.
Internal Implementation.

Features

    Data Types: Byte, Int
    Color Spaces: Gray
    Compressions: 
      NONE - no compression [default]
    Only one image.
    No alpha channel.
    Internally the lines are arranged from top down to bottom.
 
    Attributes:
      Description (string)

    Comments:
      The format is very simple, inspired by PNM.
      It was developed because PNM does not have support for INT and FLOAT.
      Remeber that usually convolution operations use kernel size an odd number.

    Format Model:
      IMKERNEL
      Description up to 512 characters
      width height
      type (0 - IM_INT, 1 - IM_FLOAT)
      data...

    Example:
      IMKERNEL
      Gradian
      3 3
      0
      0 -1 0     
      0  1 0  
      0  0 0