forked from fei-company/EerReaderLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEerFile.h
More file actions
36 lines (28 loc) · 727 Bytes
/
EerFile.h
File metadata and controls
36 lines (28 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2019 by FEI Company
#pragma once
#include <memory>
#include <string>
#include <tiffio.h>
#include "EerFrame.h"
#include "Bitmap.h"
namespace Fei {
namespace Acquisition {
namespace EerReader {
class EerFile
{
public:
EerFile(const std::string& filename);
~EerFile();
std::unique_ptr<EerFrame> GetNextEerFrame();
std::shared_ptr<Bitmap> GetFinalImage();
std::string GetAcquisitionMetadata() const;
private:
bool IsCurrentFrameEERCompressed();
private:
std::shared_ptr<TIFF> m_tiff;
bool m_nextFrameAvailable = true;
std::shared_ptr<Bitmap> m_finalImageBitmap;
};
} //namespace EerReader
} //namespace Acquisition
} //namespace Fei