Skip to content

@labirthermal/core ​

Provides framework-agnostic TypeScript classes for work with thermal images in the browser:

  • loading and reading of files
  • core classes that enable processing of multiple IR images at once

Installation ​

Install @labirthermal/core from npm:

sh
npm install @labirthermal/core

Usage ​

The core library can be used:

Sections ​

Standalone usage ​

Step-by-step examples, each shown both in TypeScript and with the equivalent webcomponents:

  • Load a single file – load one LRC file and render it. Radiometric FLIR JPEGs (.jpg) are loaded the same way.
  • Load multiple files – load several files into one group.
  • Controls – build your own GUI on top of the core classes.

Core classes ​

Reference of the classes forming the hierarchy:

Reference of the classes handling file loading:

Supported files ​

Formats that can be loaded, and how to add another one:

Key concepts ​

One of the main ambitions of the @labirthermal packages is to work with multiple files at once. For that reason, the library works with a hierarchical structure of classes:

  • ThermalManager = the global context shares the cache
    • ThermalRegistry = one display set shares the thermal scale
      • ThermalGroup = one group of files
        • ThermalFileInstance = one IR image

Explore the core hierarchy: