Skip to content

Commit ed3840b

Browse files
authored
Merge pull request #753 from PaulHax/stats-range-fix
fix(image-stats): load one component images
2 parents 8b2b3ea + 2c77c2d commit ed3840b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/store/image-stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type ImageStats = {
2828

2929
function getRangesWithCache(scalars: vtkDataArray) {
3030
const numberOfComponents = scalars.getNumberOfComponents();
31-
return Array.from({ length: numberOfComponents - 1 }, (_, i) => {
31+
return Array.from({ length: numberOfComponents }, (_, i) => {
3232
const [min, max] = scalars.getRange(i);
3333
return { min, max };
3434
});

0 commit comments

Comments
 (0)