How we can do a vertical only/horizontal only scaling with GPU rendering in Stack Viewport

Describe Your Question

  • How we can do the image stretching in vertically or horizontally with the cornerstone 3d stack viewport with the default GPU rendering.

The same feature can be achieved with the CPU rendering by providing the different scale values while calculating the transform(https://github.com/cornerstonejs/cornerstone3D/blob/898c6a5a3c38fadaa181a74205de6fc29b50e62a/packages/core/src/RenderingEngine/helpers/cpuFallback/rendering/calculateTransform.ts#L100)

What steps can we follow to achieve this?

  1. Is this possible by setting scale parameter for the actor in the stack viewport?

Hello @Trenser-SandeepNayat and welcome to the forum.

Are you trying to use scaling to zoom?