BioGTK  6.0.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions
BioGTK.PointPromotion Class Reference
Inheritance diagram for BioGTK.PointPromotion:
BioGTK.Promotion

Public Member Functions

 PointPromotion (ForeGround optype)
 
override float[] GetInput ()
 
override float[] GetLable ()
 
- Public Member Functions inherited from BioGTK.Promotion
float[] GetInput ()
 
float[] GetLable ()
 

Properties

int X [get, set]
 
int Y [get, set]
 

Additional Inherited Members

- Public Attributes inherited from BioGTK.Promotion
PromotionType mType
 
ForeGround foreGround
 

Detailed Description

Definition at line 24 of file Promotions.cs.

Constructor & Destructor Documentation

◆ PointPromotion()

BioGTK.PointPromotion.PointPromotion ( ForeGround optype)

Definition at line 26 of file Promotions.cs.

27 {
28 this.mType = PromotionType.Point;
29 this.foreGround = optype;
30 }

Member Function Documentation

◆ GetInput()

override float[] BioGTK.PointPromotion.GetInput ( )

Definition at line 33 of file Promotions.cs.

34 {
35 return new float[2] { X ,Y};
36 }

◆ GetLable()

override float[] BioGTK.PointPromotion.GetLable ( )

Definition at line 37 of file Promotions.cs.

38 {
39 if (this.foreGround == ForeGround.foreground)
40 {
41 return new float[1] { 1 };
42 }
43 else
44 {
45 return new float[1] { 0 };
46 }
47 }

Property Documentation

◆ X

int BioGTK.PointPromotion.X
getset

Definition at line 31 of file Promotions.cs.

31{ get; set; }

◆ Y

int BioGTK.PointPromotion.Y
getset

Definition at line 32 of file Promotions.cs.

32{ get; set; }

The documentation for this class was generated from the following file: