Skip to main content

Function: init()

init(configuration): boolean

Initialize the cornerstone-core. This function runs the GPU capability detection (WebGL availability, texture-format probes -- cached across page loads, see getRenderingCapabilities) which the 'auto' render backend and texture-format decisions resolve against.

If no WebGL context is available, rendering falls back to the CPU for supported operations.

Parameters

configuration: Cornerstone3DConfig = config

A configuration object

Returns

boolean

true if cornerstone has been initialized successfully.

Defined in

packages/core/src/init.ts:109