13 #ifndef mitkToFDebugHelper_h
14 #define mitkToFDebugHelper_h
26 unsigned int* dim =
new unsigned int[2];
30 image->Initialize(
mitk::PixelType(mitk::MakeScalarPixelType<float>()), 2, dim);
31 image->SetSlice(distances);
34 filter->SetImage(image);
35 cv::Mat cvImage = filter->GetOpenCVMat();
36 double minVal, maxVal;
37 cv::minMaxLoc(cvImage, &minVal, &maxVal);
39 cvImage.convertTo(uCCImage, CV_8U, 255.0/(maxVal - minVal), -minVal);
40 cv::namedWindow(
"Debug Image", CV_WINDOW_AUTOSIZE);
41 cv::imshow(
"Debug Image", uCCImage);
42 cv::waitKey(10000000);