Skip to content

Commit

Permalink
Update dcm_qa submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Aug 19, 2017
1 parent 948c212 commit affab9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ unsigned char * nii_loadImgCoreOpenJPEG(char* imgname, struct nifti_1_header hdr
if(! opj_read_header( stream, codec, &jpx)){
printError( "OpenJPEG failed to read the header %s (offset %d)\n", imgname, dcm.imageStart);
//comment these next lines to abort: include these to create zero-padded slice
{#ifdef MY_ZEROFILLBROKENJPGS}
#ifdef MY_ZEROFILLBROKENJPGS
//fix broken slices https://github.com/scitran-apps/dcm2niix/issues/4
printError( "Zero-filled slice created\n");
int imgbytes = (hdr.bitpix/8)*hdr.dim[1]*hdr.dim[2];
ret = (unsigned char*) calloc(imgbytes,1);
{#endif}
#endif
goto cleanup2;
}
// Get the decoded image
Expand Down

0 comments on commit affab9b

Please sign in to comment.