MCPcopy Create free account
hub / github.com/MITK/MITK / RecordFrame

Method RecordFrame

Modules/Core/src/Rendering/mitkVideoRecorder.cpp:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 void RecordFrame()
105 {
106 m_WindowToImageFilter->Modified();
107
108 std::stringstream frameFilename;
109 frameFilename << std::setw(6) << std::setfill('0') << m_NumberOfFrames << ".png";
110 const auto framePath = m_FrameDir / frameFilename.str();
111
112 m_ImageWriter->SetFileName(framePath.string().c_str());
113 m_ImageWriter->Write();
114
115 ++m_NumberOfFrames;
116 }
117
118 private:
119 fs::path m_FrameDir;

Callers

nothing calls this directly

Calls 3

ModifiedMethod · 0.45
SetFileNameMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected