X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=Parasitemia%2FParasitemiaUI%2FTypes.fs;h=a98d7b0270d29d0c396ec4731d697a330481b0af;hb=a498bc4223a22cd38b91b3348912301e15c077ae;hp=3a3cf564558273c79c04bd1c6afe92a79cff3f3f;hpb=d3f9cd7b16d25f49bd8d06394b0f1d4040809fbd;p=master-thesis.git diff --git a/Parasitemia/ParasitemiaUI/Types.fs b/Parasitemia/ParasitemiaUI/Types.fs index 3a3cf56..a98d7b0 100644 --- a/Parasitemia/ParasitemiaUI/Types.fs +++ b/Parasitemia/ParasitemiaUI/Types.fs @@ -1,11 +1,6 @@ module ParasitemiaUI.Types -open System open System.Windows -open System.Windows.Media - -open Emgu.CV -open Emgu.CV.Structure open Newtonsoft.Json @@ -31,9 +26,8 @@ type PredefinedPPI = ppi : int label : string } - with - override this.ToString () = - sprintf "%s: %d" this.label this.ppi + override this.ToString () = + sprintf "%s: %d" this.label this.ppi type SensorSize = { @@ -41,9 +35,8 @@ type SensorSize = h : float label : string } - with - override this.ToString () = - sprintf "%g mm × %g mm%s" this.w this.h (if this.label = "" then "" else " (" + this.label + ")") + override this.ToString () = + sprintf "%g mm × %g mm%s" this.w this.h (if this.label = "" then "" else " (" + this.label + ")") let defaultPredefinedPPI = [ @@ -62,5 +55,3 @@ let defaultSensorSizes = { w = 8.8; h = 6.6; label = "2/3″" } { w = 13.2; h = 8.8; label = "1″" } ] - -