![]() |
BioGTK
6.7.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
|
Public Types | |
| enum | ViewMode { Raw , Filtered , RGBImage , Emission } |
Public Member Functions | |
| void | SetCoordinate (int z, int c, int t) |
| ZCT | GetCoordinate () |
| void | AddImage (BioImage im) |
| void | SetZarrLabelOverlays (BioImage image, List< ROI > overlays, string? keyOverride=null) |
| void | RefreshZarrLabelOverlays (string? sourceOverride=null) |
| void | RefreshZarrLabelOverlays (BioImage image, string? sourceOverride=null) |
| List< ROI > | GetZarrLabelOverlaysForImage (BioImage image) |
| void | RequestImmediateRender () |
| void | RequestDeferredRender () |
| void | SetTitle (string s) |
| void | UpdateImages (bool force=false) |
| It updates the images. | |
| void | UpdateImage () |
| It updates the image. | |
| void | RefreshPyramidalTiles () |
| Clears cached pyramidal tiles so channel/threshold changes take effect immediately on the tile renderer. | |
| Task< bool > | PopulateSelectedZarrStatisticsAsync () |
| void | UpdateGUI () |
| It updates the GUI to reflect the current state of the image. | |
| void | CopySelection () |
| It takes the selected ROIs and copies them to the clipboard. | |
| void | PasteSelection () |
| void | OnMouseWheel (object sender, ScrollEventArgs e) |
| void | ZoomAtPoint (double mouseX, double mouseY, bool zoomIn) |
| void | UpdateStatus () |
| It updates the status of the user. | |
| void | UpdateView (bool updateImages=true) |
| It updates the view. | |
| double | GetScale () |
| List< ROI > | GetSelectedROIs () |
| void | ZoomAtPoint (float mouseX, float mouseY, bool zoomIn) |
| PointD | ImageToViewSpace (double x, double y) |
| PointF | ToViewSpace (PointF p) |
| PointD | ToViewSpace (PointD p) |
| PointD | ToViewSpace (double x, double y) |
| double | ToViewSizeH (double d) |
| double | ToViewW (double d) |
| double | ToViewH (double d) |
| PointD | ToScreenSpace (double x, double y) |
| PointD | ToScreenSpace (PointD p) |
| PointF | ToScreenSpace (PointF p) |
| PointF[] | ToScreenSpace (PointF[] p) |
| PointF | ToScreenSpace (Point3D p) |
| float | ToScreenScaleW (double x) |
| float | ToScreenScaleH (double y) |
| PointF | ToScreenScale (PointD p) |
| RectangleD | ToScreenRect (double x, double y, double w, double h) |
| RectangleD | ToScreenSpace (RectangleD p) |
| RectangleD | ToScreenSpace (RectangleF p) |
| RectangleD[] | ToScreenSpace (RectangleD[] p) |
| PointD[] | ToScreenSpace (PointD[] p) |
| double | ToScreenW (double x) |
| float | ToScreenH (double y) |
| void | GoToImage () |
| This function is used to go to the image at the specified index. | |
| void | GoToImage (int i) |
| void | ReinitializeWellField () |
| Open slide file. | |
| void | RebuildSchemaForWell (BioImage b) |
Static Public Member Functions | |
| static ImageView | Create (BioImage bm) |
| static SKImage | BitmapToSKImage (Bitmap bmp) |
| static Cairo.Color | FromColor (Color color) |
Public Attributes | |
| List< BioImage > | Images = new List<BioImage>() |
| Gtk.Box | mainBox |
| Menu | contextMenu |
| SlideGLArea | glArea |
| SlideRenderer | slideRenderer |
| SKSlideRenderer | sKSlideRenderer |
| GLWindow | window |
| bool | showRROIs = true |
| bool | showGROIs = true |
| bool | showBROIs = true |
| ROI | selectedROI = new ROI() |
Static Public Attributes | |
| static bool | MacOS = false |
| static int | waitz = 1000 |
| static int | waitc = 1000 |
| static int | waitt = 1000 |
| static int | startz = 0 |
| static int | startc = 0 |
| static int | startt = 0 |
| static int | endz = 0 |
| static int | endc = 0 |
| static int | endt = 0 |
| static Gdk.Key | keyDown = Gdk.Key.Key_3270_Test |
| static bool | x1State |
| static bool | x2State |
| static bool | mouseLeftState |
| static ModifierType | Modifiers |
Protected Member Functions | |
| ImageView (Builder builder, IntPtr handle, BioImage im) | |
| void | SetupHandlers () |
| Sets up the handlers. | |
| override void | OnDestroyed () |
Properties | |
| double | PxWmicron [get, set] |
| double | PxHmicron [get, set] |
| bool | AllowNavigation [get, set] |
| bool | ShowMasks = true [get, set] |
| bool | ShowOverview = true [get, set] |
| static AForge.Bitmap | SelectedBuffer [get] |
| int | SelectedIndex [get, set] |
| static List< ROI > | selectedAnnotations [get] |
| int? | MacroResolution [get] |
| int? | LabelResolution [get] |
| bool | OpenSlide [get, set] |
| static BioImage | SelectedImage [get, set] |
| ViewMode | Mode [get, set] |
| Channel | RChannel [get] |
| Channel | GChannel [get] |
| Channel | BChannel [get] |
| PointD | Origin [get, set] |
| PointD | TopRightOrigin [get] |
| PointD | PyramidalOriginTransformed [get, set] |
| PointD | PyramidalOrigin [get, set] |
| double | Resolution [get, set] |
| int | Level [get, set] |
| SizeF | Scale [get, set] |
| bool | ShowROIs = true [get] |
| PointD | MouseDownInt [get, set] |
| PointD | MouseMoveInt [get, set] |
| PointD | MouseUpInt [get, set] |
| PointD | MouseDown [get, set] |
| PointD | MouseUp [get, set] |
| PointD | MouseMove [get, set] |
| static ROI | SelectedAnnotation [get] |
| double | ImageViewWidth [get] |
| double | ImageViewHeight [get] |
| Widget | View [get, set] |
Definition at line 25 of file ImageView.cs.
| enum BioGTK.ImageView.ViewMode |
Definition at line 3732 of file ImageView.cs.
|
protected |
Definition at line 605 of file ImageView.cs.
| void BioGTK.ImageView.AddImage | ( | BioImage | im | ) |
It adds an image to the list of images, and then updates the GUI and the images
| BioImage | a class that contains the image data and metadata |
Definition at line 205 of file ImageView.cs.
|
static |
Definition at line 1176 of file ImageView.cs.
| void BioGTK.ImageView.CopySelection | ( | ) |
It takes the selected ROIs and copies them to the clipboard.
Definition at line 3692 of file ImageView.cs.
|
static |
The function creates an ImageView object using a BioImage object and returns it.
| BioImage | The BioImage parameter is an object that represents an image in a biological context. It likely contains information about the image file, such as the filename, and possibly additional metadata related to the image. |
Definition at line 585 of file ImageView.cs.
|
static |
It takes a System.Drawing.Color and returns a Cairo.Color
| Color | The color to convert |
Definition at line 3191 of file ImageView.cs.
| ZCT BioGTK.ImageView.GetCoordinate | ( | ) |
It returns the coordinate of the selected image
Definition at line 136 of file ImageView.cs.
| double BioGTK.ImageView.GetScale | ( | ) |
Definition at line 4225 of file ImageView.cs.
| List< ROI > BioGTK.ImageView.GetSelectedROIs | ( | ) |
Definition at line 4275 of file ImageView.cs.
| void BioGTK.ImageView.GoToImage | ( | ) |
This function is used to go to the image at the specified index.
Definition at line 4941 of file ImageView.cs.
| void BioGTK.ImageView.GoToImage | ( | int | i | ) |
Definition at line 5091 of file ImageView.cs.
| PointD BioGTK.ImageView.ImageToViewSpace | ( | double | x, |
| double | y ) |
It takes a point in the image space and returns the point in the view space
| x | the x coordinate of the point in the image |
| y | the y coordinate of the point in the image |
Definition at line 4622 of file ImageView.cs.
|
protected |
Definition at line 4565 of file ImageView.cs.
| void BioGTK.ImageView.OnMouseWheel | ( | object | sender, |
| ScrollEventArgs | e ) |
Definition at line 3916 of file ImageView.cs.
| void BioGTK.ImageView.PasteSelection | ( | ) |
The function takes the text from the clipboard and splits it into lines. Each line is then converted into an ROI object and added to the list of annotations
Definition at line 3713 of file ImageView.cs.
| Task< bool > BioGTK.ImageView.PopulateSelectedZarrStatisticsAsync | ( | ) |
Definition at line 1803 of file ImageView.cs.
| void BioGTK.ImageView.RebuildSchemaForWell | ( | BioImage | b | ) |
Definition at line 5354 of file ImageView.cs.
| void BioGTK.ImageView.RefreshPyramidalTiles | ( | ) |
Clears cached pyramidal tiles so channel/threshold changes take effect immediately on the tile renderer.
Definition at line 1786 of file ImageView.cs.
| void BioGTK.ImageView.RefreshZarrLabelOverlays | ( | BioImage | image, |
| string? | sourceOverride = null ) |
Definition at line 249 of file ImageView.cs.
| void BioGTK.ImageView.RefreshZarrLabelOverlays | ( | string? | sourceOverride = null | ) |
Definition at line 244 of file ImageView.cs.
| void BioGTK.ImageView.ReinitializeWellField | ( | ) |
Open slide file.
| sender | |
| e |
Rebuilds the tile schema and renderer source for a well image when the active well field (WellIndex) has been changed from outside (e.g. the PlateTool UI). Call this after setting SelectedImage.WellIndex.
Definition at line 5279 of file ImageView.cs.
| void BioGTK.ImageView.RequestDeferredRender | ( | ) |
Definition at line 1392 of file ImageView.cs.
| void BioGTK.ImageView.RequestImmediateRender | ( | ) |
Definition at line 1254 of file ImageView.cs.
| void BioGTK.ImageView.SetCoordinate | ( | int | z, |
| int | c, | ||
| int | t ) |
Definition at line 34 of file ImageView.cs.
| void BioGTK.ImageView.SetTitle | ( | string | s | ) |
Definition at line 1586 of file ImageView.cs.
|
protected |
Sets up the handlers.
Definition at line 2307 of file ImageView.cs.
| void BioGTK.ImageView.SetZarrLabelOverlays | ( | BioImage | image, |
| List< ROI > | overlays, | ||
| string? | keyOverride = null ) |
Definition at line 231 of file ImageView.cs.
| float BioGTK.ImageView.ToScreenH | ( | double | y | ) |
Convert a value in microns to a value in pixels
| y | the y coordinate of the point to be converted |
Definition at line 4936 of file ImageView.cs.
| RectangleD BioGTK.ImageView.ToScreenRect | ( | double | x, |
| double | y, | ||
| double | w, | ||
| double | h ) |
It converts a rectangle in microns to a rectangle in pixels
| x | The x coordinate of the rectangle |
| y | -0.0015 |
| w | width of the image in microns |
| h | height of the rectangle |
Definition at line 4849 of file ImageView.cs.
| PointF BioGTK.ImageView.ToScreenScale | ( | PointD | p | ) |
Convert a point in the world coordinate system to a point in the screen coordinate system
| PointD |
Definition at line 4835 of file ImageView.cs.
| float BioGTK.ImageView.ToScreenScaleH | ( | double | y | ) |
Convert a value in microns to a value in pixels
| y | the y coordinate of the point to be converted |
Definition at line 4826 of file ImageView.cs.
| float BioGTK.ImageView.ToScreenScaleW | ( | double | x | ) |
ToScreenScaleW() returns the number of pixels that correspond to the given number of microns
| x | the x coordinate of the point to be converted |
Definition at line 4817 of file ImageView.cs.
| PointD BioGTK.ImageView.ToScreenSpace | ( | double | x, |
| double | y ) |
It converts a point in world space to a point in screen space
| x | The x coordinate of the point to convert. |
| y | The y coordinate of the point to transform. |
Definition at line 4764 of file ImageView.cs.
| PointF BioGTK.ImageView.ToScreenSpace | ( | Point3D | p | ) |
It converts a 3D point to a 2D point
| Point3D |
Definition at line 4807 of file ImageView.cs.
| PointD BioGTK.ImageView.ToScreenSpace | ( | PointD | p | ) |
Converts a point from world space to screen space
| PointD | A class that contains an X and Y value. |
Definition at line 4774 of file ImageView.cs.
| PointD[] BioGTK.ImageView.ToScreenSpace | ( | PointD[] | p | ) |
Convert a list of points from world space to screen space
| p | The point to convert |
Definition at line 4912 of file ImageView.cs.
| PointF BioGTK.ImageView.ToScreenSpace | ( | PointF | p | ) |
Convert a point in the world coordinate system to the screen coordinate system
| PointF | The point you want to convert to screen space. |
Definition at line 4783 of file ImageView.cs.
| PointF[] BioGTK.ImageView.ToScreenSpace | ( | PointF[] | p | ) |
It takes an array of points and returns an array of points
| p | The point to convert |
Definition at line 4793 of file ImageView.cs.
| RectangleD BioGTK.ImageView.ToScreenSpace | ( | RectangleD | p | ) |
It converts a rectangle from world space to screen space
| RectangleD | The rectangle to convert. |
Definition at line 4879 of file ImageView.cs.
| RectangleD[] BioGTK.ImageView.ToScreenSpace | ( | RectangleD[] | p | ) |
It takes an array of RectangleD objects and returns an array of RectangleF objects
| p | The rectangle to convert |
Definition at line 4897 of file ImageView.cs.
| RectangleD BioGTK.ImageView.ToScreenSpace | ( | RectangleF | p | ) |
It converts a rectangle from world space to screen space
| RectangleF | The rectangle to convert. |
Definition at line 4888 of file ImageView.cs.
| double BioGTK.ImageView.ToScreenW | ( | double | x | ) |
ToScreenW(x) = x * PxWmicron
| x | the x coordinate of the point to be converted |
Definition at line 4927 of file ImageView.cs.
| double BioGTK.ImageView.ToViewH | ( | double | d | ) |
Convert a distance in microns to a distance in pixels
| d | the distance in microns |
Definition at line 4748 of file ImageView.cs.
| double BioGTK.ImageView.ToViewSizeH | ( | double | d | ) |
Convert a value in microns to a value in pixels
| d | the size in microns |
Definition at line 4718 of file ImageView.cs.
| PointD BioGTK.ImageView.ToViewSpace | ( | double | x, |
| double | y ) |
Definition at line 4675 of file ImageView.cs.
| PointD BioGTK.ImageView.ToViewSpace | ( | PointD | p | ) |
Converts a point from world space to view space
| PointD | A class that contains an X and Y value. |
Definition at line 4652 of file ImageView.cs.
| PointF BioGTK.ImageView.ToViewSpace | ( | PointF | p | ) |
Convert a point from world space to view space
| PointF | The point to convert |
Definition at line 4642 of file ImageView.cs.
| double BioGTK.ImageView.ToViewW | ( | double | d | ) |
Convert a distance in microns to a distance in pixels on the screen
| d | the distance in microns |
Definition at line 4733 of file ImageView.cs.
| void BioGTK.ImageView.UpdateGUI | ( | ) |
It updates the GUI to reflect the current state of the image.
Definition at line 3546 of file ImageView.cs.
| void BioGTK.ImageView.UpdateImage | ( | ) |
It updates the image.
Definition at line 1777 of file ImageView.cs.
| void BioGTK.ImageView.UpdateImages | ( | bool | force = false | ) |
It updates the images.
Definition at line 1620 of file ImageView.cs.
| void BioGTK.ImageView.UpdateStatus | ( | ) |
It updates the status of the user.
Definition at line 4051 of file ImageView.cs.
| void BioGTK.ImageView.UpdateView | ( | bool | updateImages = true | ) |
It updates the view.
Definition at line 4086 of file ImageView.cs.
| void BioGTK.ImageView.ZoomAtPoint | ( | double | mouseX, |
| double | mouseY, | ||
| bool | zoomIn ) |
Definition at line 3925 of file ImageView.cs.
| void BioGTK.ImageView.ZoomAtPoint | ( | float | mouseX, |
| float | mouseY, | ||
| bool | zoomIn ) |
Definition at line 4291 of file ImageView.cs.
| Menu BioGTK.ImageView.contextMenu |
Definition at line 524 of file ImageView.cs.
|
static |
Definition at line 2557 of file ImageView.cs.
|
static |
Definition at line 2558 of file ImageView.cs.
|
static |
Definition at line 2556 of file ImageView.cs.
| SlideGLArea BioGTK.ImageView.glArea |
Definition at line 570 of file ImageView.cs.
| List<BioImage> BioGTK.ImageView.Images = new List<BioImage>() |
Definition at line 31 of file ImageView.cs.
|
static |
Definition at line 3315 of file ImageView.cs.
|
static |
Definition at line 574 of file ImageView.cs.
| Gtk.Box BioGTK.ImageView.mainBox |
Definition at line 512 of file ImageView.cs.
|
static |
Definition at line 4232 of file ImageView.cs.
|
static |
Definition at line 4231 of file ImageView.cs.
| ROI BioGTK.ImageView.selectedROI = new ROI() |
Definition at line 4241 of file ImageView.cs.
| bool BioGTK.ImageView.showBROIs = true |
Definition at line 4214 of file ImageView.cs.
| bool BioGTK.ImageView.showGROIs = true |
Definition at line 4213 of file ImageView.cs.
| bool BioGTK.ImageView.showRROIs = true |
Definition at line 4212 of file ImageView.cs.
| SKSlideRenderer BioGTK.ImageView.sKSlideRenderer |
Definition at line 572 of file ImageView.cs.
| SlideRenderer BioGTK.ImageView.slideRenderer |
Definition at line 571 of file ImageView.cs.
|
static |
Definition at line 2554 of file ImageView.cs.
|
static |
Definition at line 2555 of file ImageView.cs.
|
static |
Definition at line 2553 of file ImageView.cs.
|
static |
Definition at line 2551 of file ImageView.cs.
|
static |
Definition at line 2552 of file ImageView.cs.
|
static |
Definition at line 2550 of file ImageView.cs.
| GLWindow BioGTK.ImageView.window |
Definition at line 573 of file ImageView.cs.
|
static |
Definition at line 4229 of file ImageView.cs.
|
static |
Definition at line 4230 of file ImageView.cs.
|
getset |
Definition at line 435 of file ImageView.cs.
|
get |
Definition at line 3813 of file ImageView.cs.
|
get |
Definition at line 3805 of file ImageView.cs.
|
get |
Definition at line 4608 of file ImageView.cs.
|
get |
Definition at line 4600 of file ImageView.cs.
|
get |
Definition at line 1832 of file ImageView.cs.
|
getset |
Definition at line 4006 of file ImageView.cs.
|
get |
Definition at line 1831 of file ImageView.cs.
|
getset |
Definition at line 3766 of file ImageView.cs.
|
getset |
Definition at line 4258 of file ImageView.cs.
|
getset |
Definition at line 4243 of file ImageView.cs.
|
getset |
Definition at line 4268 of file ImageView.cs.
|
getset |
Definition at line 4248 of file ImageView.cs.
|
getset |
Definition at line 4263 of file ImageView.cs.
|
getset |
Definition at line 4253 of file ImageView.cs.
|
getset |
Definition at line 3740 of file ImageView.cs.
|
getset |
Definition at line 3822 of file ImageView.cs.
|
getset |
Definition at line 402 of file ImageView.cs.
|
getset |
Definition at line 369 of file ImageView.cs.
|
getset |
Definition at line 3855 of file ImageView.cs.
|
getset |
Definition at line 3848 of file ImageView.cs.
|
get |
Definition at line 3797 of file ImageView.cs.
|
getset |
Definition at line 3947 of file ImageView.cs.
|
getset |
Definition at line 4039 of file ImageView.cs.
|
staticget |
Definition at line 4587 of file ImageView.cs.
|
staticget |
Definition at line 473 of file ImageView.cs.
|
staticget |
Definition at line 446 of file ImageView.cs.
|
staticgetset |
Definition at line 3745 of file ImageView.cs.
|
getset |
Definition at line 455 of file ImageView.cs.
|
getset |
Definition at line 441 of file ImageView.cs.
|
getset |
Definition at line 442 of file ImageView.cs.
|
get |
Definition at line 4215 of file ImageView.cs.
|
get |
Definition at line 3840 of file ImageView.cs.
|
getset |
Definition at line 4656 of file ImageView.cs.