View in #ohif on Slack
@suneetha_j: Hi, MPR got crashing the browser, study with greater than 3000 images, do we have any solutions for this to improve ?
@Hemant_Patel: Use int16 data type
@suneetha_j: thanks
@Enas_Mostafa: You can downsample the captured slices to prevent memory leaks.
I applied this solution while calling getImageIdsForDisplaySet
.
The MaxVolumeCount
is configurable in the app-config
.
getImageIdsForDisplaySet(displaySet, volume) {
const images = displaySet.images;
const imageIds = ;
if (!images) {
return imageIds;
}
const imageCount = displaySet.images.length;
let increment = 1;
//For series with images count greater than
if (volume && imageCount > MaxVolumeCount) {
increment = Math.round(imageCount / MaxVolumeCount);
}
for (
var i = 0;
i < imageCount;
i += increment // displaySet.images.forEach(instance => {
)