Skip to content

Commit

Permalink
Added default bits stored for image files. Relates to #37.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 23, 2013
1 parent 2b8c33b commit 260506c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/image/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ dwv.image.getDataFromImage = function(image)
var sliceIndex = image.index ? image.index : 0;
var dwvImage = new dwv.image.Image(imageSize, imageSpacing, buffer, [[0,0,sliceIndex]]);
dwvImage.setPhotometricInterpretation("RGB");
// meta information
var meta = {};
meta.BitsStored = 8;
dwvImage.setMeta(meta);
// view
var view = new dwv.image.View(dwvImage);
view.setWindowLevelMinMax();
Expand Down

0 comments on commit 260506c

Please sign in to comment.