Refactor openalpr-net into separate files instead of having one huge file.

This commit is contained in:
Peter Rekdal Sunde
2015-07-10 09:48:16 +02:00
parent d9f6571e17
commit 5d3281d8cd
12 changed files with 1183 additions and 1051 deletions

View File

@@ -0,0 +1,27 @@
#include "stdafx.h"
#include "bitmapmat-net.h"
using namespace openalprnet;
BitmapMat::BitmapMat(array<Byte>^ byteArray)
{
this->m_bitmap = ByteArrayToMat(byteArray);
}
BitmapMat::BitmapMat(Bitmap^ bitmap)
{
this->m_bitmap = BitmapToMat(bitmap);
}
BitmapMat::BitmapMat(MemoryStream^ memoryStream)
{
this->m_bitmap = MemoryStreamBitmapToMat(memoryStream);
}
BitmapMat::BitmapMat(String^ filename)
{
Bitmap^ bitmap = gcnew Bitmap(filename);
this->m_bitmap = BitmapToMat(bitmap);
delete bitmap;
}