From 710cd8581eb90c6c051592ac736d88dbd2e8a2da Mon Sep 17 00:00:00 2001 From: Joel Date: Sat, 23 May 2020 14:13:31 +0200 Subject: [PATCH] asd --- Game1/Game1.csproj | 2 ++ Game1/Sources/ML-Joel/ImageData.cs | 17 +++++++++++++++++ Game1/Sources/ML-Joel/InMemoryImageData.cs | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 Game1/Sources/ML-Joel/ImageData.cs create mode 100644 Game1/Sources/ML-Joel/InMemoryImageData.cs diff --git a/Game1/Game1.csproj b/Game1/Game1.csproj index 109cb08..f475799 100644 --- a/Game1/Game1.csproj +++ b/Game1/Game1.csproj @@ -89,6 +89,8 @@ + + diff --git a/Game1/Sources/ML-Joel/ImageData.cs b/Game1/Sources/ML-Joel/ImageData.cs new file mode 100644 index 0000000..569f0ef --- /dev/null +++ b/Game1/Sources/ML-Joel/ImageData.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +public class ImageData +{ + public ImageData(string imagePath, string label) + { + ImagePath = imagePath; + Label = label; + } + + public readonly string ImagePath; + public readonly string Label; +} \ No newline at end of file diff --git a/Game1/Sources/ML-Joel/InMemoryImageData.cs b/Game1/Sources/ML-Joel/InMemoryImageData.cs new file mode 100644 index 0000000..d15d0fe --- /dev/null +++ b/Game1/Sources/ML-Joel/InMemoryImageData.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +public class InMemoryImageData +{ + public InMemoryImageData(byte[] image, string label, string imageFileName) + { + Image = image; + Label = label; + ImageFileName = imageFileName; + } + + public readonly byte[] Image; + public readonly string Label; + public readonly string ImageFileName; +} \ No newline at end of file