diff --git a/include/ftl/codec/rawmat.hpp b/include/ftl/codec/rawmat.hpp
new file mode 100644
index 0000000000000000000000000000000000000000..05e116147140082720d77695c3fb35f191bf61c6
--- /dev/null
+++ b/include/ftl/codec/rawmat.hpp
@@ -0,0 +1,29 @@
+/**
+ * @file rawmat.hpp
+ * @copyright Copyright (c) 2022 University of Turku, MIT License
+ * @author Nicolas Pope
+ */
+
+#pragma once
+
+#include <cstdint>
+
+namespace ftl {
+namespace codec {
+namespace raw {
+
+/**
+ * @brief Uncompressed image data with an OpenCV type.
+ * 
+ */
+template<typename T = uint8_t>
+struct RawMat {
+    uint16_t cols;
+    uint16_t rows;
+    uint32_t type;
+    T data[];
+};
+
+}  // namespace raw
+}  // namespace codec
+}  // namespace ftl