title: Dicom Toolkit (DCMTK) - How to get Window Centre and Width
body: <p>I am currently using DCMTK in C++. I am quite new to this toolkit but, as I understand it, I should be able to read the window centre and width for normalisation purposes.</p>
  
  <p>I have a DicomImage DCM_image object with my Dicom data.
  I read the values to an opencv Mat object. However, I now would like to normalise them.
  The following shows how I am reading and transferring the Data to an opencv Mat.</p>
  
  <pre><code>    DicomImage DCM_image("test.dcm");
      uchar *pixelData = (uchar *)(DCM_image.getOutputData(8));   
      cv::Mat image(int(DCM_image.getHeight()), int(DCM_image.getWidth()), CV_8U, pixelData);
  </code></pre>
  
  <p>Any help is appreciated. Thanks</p>