------------------------------------------------------------------------------
| 41 | |
| 42 | //------------------------------------------------------------------------------ |
| 43 | void vtkNIFTIImageHeader::Initialize() |
| 44 | { |
| 45 | memset(this->Magic, '\0', sizeof(this->Magic)); |
| 46 | this->VoxOffset = 0; |
| 47 | this->DataType = 0; |
| 48 | this->BitPix = 0; |
| 49 | for (int i = 0; i < 8; i++) |
| 50 | { |
| 51 | this->Dim[i] = 0; |
| 52 | this->PixDim[i] = 0.0; |
| 53 | } |
| 54 | this->IntentCode = 0; |
| 55 | memset(this->IntentName, '\0', sizeof(this->IntentName)); |
| 56 | this->IntentP1 = 0.0; |
| 57 | this->IntentP2 = 0.0; |
| 58 | this->IntentP3 = 0.0; |
| 59 | this->SclSlope = 0.0; |
| 60 | this->SclInter = 0.0; |
| 61 | this->CalMin = 0.0; |
| 62 | this->CalMax = 0.0; |
| 63 | this->SliceDuration = 0.0; |
| 64 | this->TOffset = 0.0; |
| 65 | this->SliceStart = 0; |
| 66 | this->SliceEnd = 0; |
| 67 | this->SliceCode = 0; |
| 68 | this->XYZTUnits = 0; |
| 69 | this->DimInfo = 0; |
| 70 | memset(this->Descrip, '\0', sizeof(this->Descrip)); |
| 71 | memset(this->AuxFile, '\0', sizeof(this->AuxFile)); |
| 72 | this->QFormCode = 0; |
| 73 | this->SFormCode = 0; |
| 74 | this->QuaternB = 0.0; |
| 75 | this->QuaternC = 0.0; |
| 76 | this->QuaternD = 0.0; |
| 77 | this->QOffsetX = 0.0; |
| 78 | this->QOffsetY = 0.0; |
| 79 | this->QOffsetZ = 0.0; |
| 80 | for (int i = 0; i < 4; i++) |
| 81 | { |
| 82 | this->SRowX[i] = 0.0; |
| 83 | this->SRowY[i] = 0.0; |
| 84 | this->SRowZ[i] = 0.0; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | //------------------------------------------------------------------------------ |
| 89 | void vtkNIFTIImageHeader::SetHeader(const nifti_1_header* hdr) |
no outgoing calls
no test coverage detected