This is a template for a simple next.js project with typescript, eslint, prettier, utilizing the Cornerstone3D library for rendering.
we are using cornerstone3D version 2.0.beta which is not yet released and is still in development.
npm install
npm run dev
there are two routes
- / which shows a volume viewport - to make sure the cornerstone3d is working
- /polySeg which shows the contour to labelmap conversion - to make sure the custom wasm , worker and the conversion is working
The lib
folder contains custom loading scripts to read data from the server. These scripts are boilerplate code for reading metadata, adding instances, and other related tasks.
Note that building an entire viewer is often much more complicated. You might want to explore the OHIF project for a comprehensive solution.