Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cpu fallback for rendering stack viewports (#315)
* Stub out all paths and move things around to get us set up for CPU rendering * Basic skeleton framework set up for cpu fallback * WIP seperate enableing/resizing for non VTK driven vps * Feat/dev cpu fallback resizing (#296) * WIP splitting up viewports * First itteration seems solid * Make suggested changes * Feat/dev cpu fallback cs2d pipeline (#297) * WIP splitting up viewports * First itteration seems solid * Grayscale pipeline working for default image * feat: Add world to canvas and imageData computations for CPU fallback (#298) * feat: add world2canvas and canvas2world * renamed files from js to ts * feat: make annotation tool work for length * feat: make other annotation tools work Co-authored-by: Alireza <[email protected]> * feat: Add detect webgl context (#294) * feat: Add detect webgl context * feat: add init for cs-render * remaining files * fix: demos with init * feat: add manually setting cpu rendering * feat: add set and get methods to init * Feat/dev cpu fallback rgb (#299) * WIP color stack * Fix web image loaders usage with the StackViewport * Get RGB images rendering using CPU Fallback * WIP pseudocolor * Working false color * remove all layers stuff * Add remaining file which I didn't save Co-authored-by: Alireza <[email protected]> * Fix/annotations cpu (#300) * fix: tests for initialize cornerstone and vtkimagedata change * yarn lock * fix: worldToCanvas error for pixel calculation (#301) * Feat/cpu maniputlation canvas (#302) * fix: performance issue with cpu getImageData * feat: breaks setProperties into cpu and gpu implementation * wip for refactoring window level * feat: Add window level to cpu * feat: Add rotation and invert * feat: Add reset properties * feat: Add zoom tool for cpu * feat: Add pan tool for cpu * fix: pan and zoom tool sensitivity * fix: worldToCanvas for cpu * feat: fix interoplationType * fix: maintain viewport on same stack only * removed unnecessary flag for camera * trying to fix the ci while not breaking dcmjs * Revert new properties added to ICamera and update adapter to work with existing interface Co-authored-by: James A. Petts <[email protected]> * Split example and WIP cleanup types (#303) * Cleanup rendering engine (#304) * bump minor versions (#305) * Feat/cpu fallback tests (#306) * renamed files * feat: add cpu rendering tests and promisify stackViewport * fix: windowlevel bug for volumeUID * feat: Add tests for cornerstoneTools and cpu * feat: Add flip to cpu viewport * feat: Add camera resize * feat: Add camera reset * fix: tests * apply review comments * apply review comments * feat: Add resetPanZoom for resetCamera for cpu * stack viewport set properties api * fix: rotation and interpolation * fix: horizontal flip for cpu * fix: horizontal flip for gpu * fix: tests for stack viewport * Feat/dev cpu fallback build (#309) * fix various build errors * fix default voi * finished types * fix: tests * Fix/gpu flip (#310) * work in progress * fix: fixed transformation for flipTx * feat: Add tests for gpu flip * fix: build error * fix: voluem viewport flip * apply review comments * PET rendering with CPU fallback using LUT function instead of LUT table (#308) * Sets PET WL to 0-5 SUV, adds PET to list on CPU stack viewport fallback * Super simple POC for rendering images * Add todo comments for alireza * Add comments * remaining fixes from rebase * fix: petThreshold tool for window leveling * fix: probe tool for scaling pt cpu * fix: demo to reset tool with different stack * feat: add invert for pt cpu * feat: add false colormap to pt * apply review comments * fix tests Co-authored-by: James A. Petts <[email protected]> * feat: add detect-gpu to init (#311) * feat: add detect-gpu to init * reducing the tier for testing * fix tests * fix: remove offCanvas div in cpu demo * bump docusaurus version * fix docusaurus broken links Co-authored-by: James A. Petts <[email protected]>
- Loading branch information