![]() |
BioImager
3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include Prior® & Zeiss® & all devices supported by Micromanager 2.0 and python-microscope.
|
ImageView control for image stacks, pyramidal and whole-slide-images. More...
Classes | |
| struct | Layer |
Public Types | |
| enum | ViewMode |
Public Member Functions | |
| ImageView (BioImage im, bool OpenWithOpenSlide=true) | |
| Initializing the image viewer. */. More... | |
| ImageView () | |
| Initializing the ImageView class. */. More... | |
| void | SetCoordinate (int z, int c, int t) |
| ZCT | GetCoordinate () |
| void | AddImage (BioImage im) |
| void | UpdateRGBChannels () |
| void | InitGUI () |
| void | UpdateSelectBoxSize (float size) |
| void | UpdateOverlay () |
| void | UpdateStatus () |
| void | UpdateView () |
| void | RenderFrame () |
| void | UpdateView (bool refresh) |
| void | UpdateImages () |
| void | RemoveImage (int i) |
| void | RemoveImages () |
| void | UpdateImage () |
| void | GetRange () |
| void | DrawView (System.Drawing.Graphics g) |
| Draws the viewport when Hardware Acceleration is off. More... | |
| double | GetScale () |
| void | CopySelection () |
| It takes the selected ROIs and copies them to the clipboard. More... | |
| void | PasteSelection () |
| 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) |
| System.Drawing.PointF | ToScreenSpace (PointF p) |
| System.Drawing.PointF[] | ToScreenSpace (PointF[] p) |
| PointF | ToScreenSpace (Point3D p) |
| float | ToScreenScaleW (double x) |
| float | ToScreenScaleH (double y) |
| PointF | ToScreenScale (PointD p) |
| System.Drawing.RectangleF | ToScreenRectF (double x, double y, double w, double h) |
| RawRectangleF | ToRawRectF (double x, double y, double w, double h) |
| System.Drawing.RectangleF | ToScreenSpace (RectangleD p) |
| System.Drawing.RectangleF | ToScreenSpace (RectangleF p) |
| System.Drawing.RectangleF[] | ToScreenSpace (RectangleD[] p) |
| System.Drawing.RectangleF[] | ToScreenSpace (RectangleF[] p) |
| PointF[] | ToScreenSpace (PointD[] p) |
| float | ToScreenW (double x) |
| float | ToScreenH (double y) |
| void | ImageView_KeyDown (object sender, KeyEventArgs e) |
| void | GoToImage () |
| void | GoToImage (int i) |
| new void | Dispose () |
| void | GoToStage () |
| void | MoveStageToImage () |
| void | MoveStageToImage (int i) |
Public Attributes | |
| Direct2D | dx = null |
| Image | Buf = null |
| bool | init = false |
| List< BioImage > | Images = new List<BioImage>() |
| string | filepath = "" |
| int | serie = 0 |
| int | minSizeX = 50 |
| int | minSizeY = 20 |
| bool | loopZ = true |
| bool | loopT = true |
| bool | loopC = true |
| bool | showRROIs = true |
| bool | showGROIs = true |
| bool | showBROIs = true |
Static Public Attributes | |
| static List< ROI > | selectedAnnotations = new List<ROI>() |
| static PointD | mouseDown |
| static bool | down |
| static PointD | mouseUp |
| static bool | up |
| static MouseButtons | mouseUpButtons |
| static MouseButtons | mouseDownButtons |
| static bool | showBounds = true |
| static bool | showText = true |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
| Clean up any resources being used. More... | |
Properties | |
| List< Layer > | Layers [get, set] |
| static BioImage | SelectedImage [get] |
| static Bitmap | SelectedBuffer [get] |
| static bool | Ctrl [get] |
| int | SelectedIndex [get, set] |
| A property that is used to set the selected index of the image. */. More... | |
| Tools | tools [get] |
| bool | ShowStage [get, set] |
| bool | ShowOverview [get, set] |
| bool | ShowControls [get, set] |
| Setting the visibility of the trackBarPanel. */. More... | |
| bool | ShowStatus [get, set] |
| Setting the value of the property ShowStatus. */. More... | |
| double | PxWmicron [get, set] |
| Only used when opening stacks. More... | |
| double | PxHmicron [get, set] |
| Only used when opening stacks. More... | |
| ViewMode | Mode [get, set] |
| Setting the view mode of the application. */. More... | |
| string | Path [get] |
| A property that returns the filepath. */. More... | |
| Channel | RChannel [get] |
| A property that returns the R channel of the selected image. */. More... | |
| Channel | GChannel [get] |
| A property that returns the G channel of the image. */. More... | |
| Channel | BChannel [get] |
| Getting the B channel of the image. */. More... | |
| bool | OpenSlide [get] |
| int? | MacroResolution [get] |
| int? | LabelResolution [get] |
| int | ViewWidth [get] |
| int | ViewHeight [get] |
| PointD | Origin [get, set] |
| A property of the class PointD. */. More... | |
| PointD | PyramidalOrigin [get, set] |
| Setting the value of the pyramidalOrigin variable. */. More... | |
| double | Resolution [get, set] |
| A property of the class ImageViewer. It is a getter and setter for the resolution of the image. More... | |
| int | Level [get] |
| Current level when viewing whole-slide and pyramidal images. More... | |
| new AForge.SizeF | Scale [get, set] |
| Scale when opening image stacks. More... | |
| bool | HardwareAcceleration [get, set] |
| Whether or not Hardware Acceleration should be used for rendering. More... | |
| ContextMenuStrip | ViewContextMenu [get] |
| A property that returns a ContextMenuStrip object. */. More... | |
| int | ZFps [get, set] |
| Setting the interval of the timer to the value of the fps. */. More... | |
| int | TimeFps [get, set] |
| Setting the interval of the timer to the value of the timefps variable. */. More... | |
| int | CFps [get, set] |
| Setting the interval of the timer to the inverse of the fps. */. More... | |
| List< ROI > | AnnotationsR [get] |
| List< ROI > | AnnotationsG [get] |
| List< ROI > | AnnotationsB [get] |
| List< ROI > | AnnotationsRGB [get] |
| PointD | PyramidalOriginTransformed [get, set] |
| PointD | MouseDownInt [get, set] |
| PointD | MouseMoveInt [get, set] |
ImageView control for image stacks, pyramidal and whole-slide-images.
Definition at line 18 of file ImageView.cs.
| enum BioImager.ImageView.ViewMode |
Definition at line 487 of file ImageView.cs.
| BioImager.ImageView.ImageView | ( | BioImage | im, |
| bool | OpenWithOpenSlide = true |
||
| ) |
Initializing the image viewer. */.
Definition at line 21 of file ImageView.cs.
References BioImager.ImageView.AddImage(), BioImager.ImageView.CFps, BioImager.ImageView.GoToImage(), BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.InitGUI(), BioImager.ImageView.Level, BioImager.ImageView.Mode, BioImager.ImageView.SetCoordinate(), BioImager.ImageView.TimeFps, BioImager.ImageView.UpdateImages(), BioImager.ImageView.UpdateView(), and BioImager.ImageView.ZFps.
| BioImager.ImageView.ImageView | ( | ) |
Initializing the ImageView class. */.
Definition at line 90 of file ImageView.cs.
References BioImager.ImageView.CFps, BioImager.ImageView.GoToImage(), BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.InitGUI(), BioImager.ImageView.SetCoordinate(), BioImager.ImageView.TimeFps, BioImager.ImageView.UpdateImages(), BioImager.ImageView.UpdateView(), and BioImager.ImageView.ZFps.
| void BioImager.ImageView.AddImage | ( | BioImage | im | ) |
This function adds an image to the list of images, and then updates the GUI to reflect the new image
| BioImage | This is a class that contains the image data, and some other information about the image. |
Definition at line 285 of file ImageView.cs.
References BioImager.ImageView.GoToImage(), BioImager.ImageView.InitGUI(), BioImager.ImageView.Level, BioImager.ImageView.SelectedIndex, and BioImager.ImageView.UpdateImages().
Referenced by BioImager.ImageView.ImageView().
| void BioImager.ImageView.CopySelection | ( | ) |
It takes the selected ROIs and copies them to the clipboard.
Definition at line 2728 of file ImageView.cs.
References BioImager.BioImage.ROIToString().
Referenced by BioImager.ImageView.ImageView_KeyDown().
| new void BioImager.ImageView.Dispose | ( | ) |
Definition at line 3392 of file ImageView.cs.
|
protected |
Clean up any resources being used.
| disposing | true if managed resources should be disposed; otherwise, false. |
Definition at line 15 of file ImageView.designer.cs.
| void BioImager.ImageView.DrawView | ( | System.Drawing.Graphics | g | ) |
Draws the viewport when Hardware Acceleration is off.
| g |
Definition at line 2216 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Level, BioImager.ImageView.Origin, BioImager.ImageView.PyramidalOrigin, BioImager.ImageView.RenderFrame(), BioImager.ImageView.Resolution, BioImager.ImageView.Scale, BioImager.ImageView.SelectedIndex, BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToViewH(), BioImager.ImageView.ToViewW(), and BioImager.ImageView.UpdateImages().
| ZCT BioImager.ImageView.GetCoordinate | ( | ) |
It returns the coordinate of the selected image
Definition at line 276 of file ImageView.cs.
Referenced by BioImager.SlideSourceBase.GetSlice(), BioImager.ImageView.PasteSelection(), BioImager.SlideImage.ReadRegion(), BioImager.Tools.ToolDown(), BioImager.Tools.ToolUp(), and BioImager.BioImage.UpdateBuffersPyramidal().
| void BioImager.ImageView.GetRange | ( | ) |
It creates a new RangeTool object, which is a form that allows the user to set the range of the data to be displayed.
The RangeTool object is created with the following parameters:
The RangeTool object is then shown to the user.
If the user clicks the
Definition at line 1672 of file ImageView.cs.
References BioImager.ImageView.Mode.
| double BioImager.ImageView.GetScale | ( | ) |
GetScale() returns the scale of the image in the viewport.
Definition at line 2317 of file ImageView.cs.
References BioImager.ImageView.Scale.
Referenced by BioImager.Tools.ToolUp().
| void BioImager.ImageView.GoToImage | ( | ) |
If the selected image is not null, set the origin to the center of the image, and set the scale to the height of the image.
Definition at line 3261 of file ImageView.cs.
References BioImager.ImageView.GoToImage().
Referenced by BioImager.ImageView.AddImage(), BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageView(), and BioImager.TabsView.ResizeView().
| void BioImager.ImageView.GoToImage | ( | int | i | ) |
It takes an image index and centers the image in the viewport
| i | the index of the image to go to |
Definition at line 3289 of file ImageView.cs.
References BioImager.BioImage.GetUnitPerPixel(), BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Origin, BioImager.ImageView.PyramidalOrigin, BioImager.ImageView.Scale, BioImager.ImageView.ToScreenH(), BioImager.ImageView.ToScreenScaleH(), BioImager.ImageView.ToScreenScaleW(), BioImager.ImageView.ToScreenW(), and BioImager.ImageView.UpdateView().
| void BioImager.ImageView.GoToStage | ( | ) |
Definition at line 3514 of file ImageView.cs.
| PointD BioImager.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 2842 of file ImageView.cs.
References BioImager.ImageView.PyramidalOrigin, and BioImager.ImageView.ToViewSpace().
| void BioImager.ImageView.ImageView_KeyDown | ( | object | sender, |
| KeyEventArgs | e | ||
| ) |
If the user presses the "C" key while holding down the "Control" key, then the function "CopySelection" is called
| sender | The object that raised the event. |
| KeyEventArgs | The event arguments for the key press. |
Definition at line 3202 of file ImageView.cs.
References BioImager.ImageView.CopySelection(), BioImager.ImageView.Origin, BioImager.ImageView.PasteSelection(), BioImager.ImageView.Scale, BioImager.ImageView.UpdateOverlay(), and BioImager.ImageView.UpdateView().
| void BioImager.ImageView.InitGUI | ( | ) |
It initializes the GUI
Definition at line 908 of file ImageView.cs.
References BioImager.ImageView.UpdateRGBChannels().
Referenced by BioImager.ImageView.AddImage(), BioImager.ImageView.ImageView(), and BioImager.ImageView.UpdateImages().
| void BioImager.ImageView.MoveStageToImage | ( | ) |
Move the stage to the location of the selected image
Definition at line 3539 of file ImageView.cs.
References BioImager.ImageView.UpdateView().
| void BioImager.ImageView.MoveStageToImage | ( | int | i | ) |
Move the stage to the location of the image at index i
| i | the index of the image in the list of images |
Definition at line 3550 of file ImageView.cs.
References BioImager.ImageView.UpdateView().
| void BioImager.ImageView.PasteSelection | ( | ) |
We get the text from the clipboard, split it into lines, and then for each line, if it's longer than 8 characters, we convert it to an ROI and add it to the image
Definition at line 2744 of file ImageView.cs.
References BioImager.ImageView.GetCoordinate(), BioImager.BioImage.StringToROI(), and BioImager.ImageView.UpdateOverlay().
Referenced by BioImager.ImageView.ImageView_KeyDown().
| void BioImager.ImageView.RemoveImage | ( | int | i | ) |
Definition at line 1376 of file ImageView.cs.
| void BioImager.ImageView.RemoveImages | ( | ) |
Definition at line 1387 of file ImageView.cs.
| void BioImager.ImageView.RenderFrame | ( | ) |
It draws the images and annotations to the screen
Definition at line 1037 of file ImageView.cs.
References BioImager.ROI.GetPoint(), BioImager.ROI.GetPointCount(), BioImager.ROI.GetSelectBoxes(), BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Origin, BioImager.ImageView.Scale, BioImager.ImageView.ToRawRectF(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenSpace(), BioImager.ImageView.ToViewH(), BioImager.ImageView.ToViewW(), and BioImager.ImageView.UpdateImages().
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.UpdateOverlay(), and BioImager.ImageView.UpdateView().
| void BioImager.ImageView.SetCoordinate | ( | int | z, |
| int | c, | ||
| int | t | ||
| ) |
Sets the coordinate of the image to the specified Z, C, and T values
| z | the z-coordinate of the image |
| c | channel |
| t | time |
Definition at line 253 of file ImageView.cs.
Referenced by BioImager.ImageView.ImageView().
| RawRectangleF BioImager.ImageView.ToRawRectF | ( | double | x, |
| double | y, | ||
| double | w, | ||
| double | h | ||
| ) |
It takes a rectangle in the coordinate system of the stage and returns a rectangle in the
coordinate system of the picturebox
| x | The x coordinate of the upper-left corner of the rectangle. |
| y | The y-coordinate of the upper-left corner of the rectangle. |
| w | width of the rectangle |
| h | height of the rectangle |
Definition at line 3102 of file ImageView.cs.
Referenced by BioImager.ImageView.RenderFrame(), and BioImager.ImageView.ToScreenSpace().
| float BioImager.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 3187 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, and BioImager.ImageView.PxHmicron.
Referenced by BioImager.ImageView.GoToImage().
| System.Drawing.RectangleF BioImager.ImageView.ToScreenRectF | ( | 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 3057 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Origin, BioImager.ImageView.PxHmicron, BioImager.ImageView.PxWmicron, BioImager.ImageView.PyramidalOrigin, BioImager.ImageView.Scale, BioImager.ImageView.ToScreenScaleH(), BioImager.ImageView.ToScreenScaleW(), BioImager.ImageView.ToScreenSpace(), BioImager.ImageView.ToViewSizeH(), and BioImager.ImageView.ToViewSpace().
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.RenderFrame(), and BioImager.ImageView.ToScreenSpace().
| PointF BioImager.ImageView.ToScreenScale | ( | PointD | p | ) |
Convert a point in the world coordinate system to a point in the screen coordinate system
| PointD |
Definition at line 3043 of file ImageView.cs.
References BioImager.ImageView.ToScreenScaleH(), and BioImager.ImageView.ToScreenScaleW().
| float BioImager.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 3030 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.PxHmicron, and BioImager.ImageView.Scale.
Referenced by BioImager.ImageView.GoToImage(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScale(), and BioImager.ImageView.ToScreenSpace().
| float BioImager.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 3017 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.PxWmicron, and BioImager.ImageView.Scale.
Referenced by BioImager.ImageView.GoToImage(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScale(), and BioImager.ImageView.ToScreenSpace().
| PointD BioImager.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 2956 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Origin, BioImager.ImageView.ToRawRectF(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScaleH(), and BioImager.ImageView.ToScreenScaleW().
Referenced by BioImager.ImageView.RenderFrame(), BioImager.ImageView.ToScreenRectF(), and BioImager.ImageView.ToScreenSpace().
| PointF BioImager.ImageView.ToScreenSpace | ( | Point3D | p | ) |
It converts a 3D point to a 2D point
| Point3D |
Definition at line 3007 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| PointD BioImager.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 2974 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| PointF[] BioImager.ImageView.ToScreenSpace | ( | PointD[] | p | ) |
Convert a list of points from world space to screen space
| p | The point to convert |
Definition at line 3159 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| System.Drawing.PointF BioImager.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 2983 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| System.Drawing.PointF[] BioImager.ImageView.ToScreenSpace | ( | PointF[] | p | ) |
It takes an array of points and returns an array of points
| p | The point to convert |
Definition at line 2993 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| System.Drawing.RectangleF BioImager.ImageView.ToScreenSpace | ( | RectangleD | p | ) |
It converts a rectangle from world space to screen space
| RectangleD | The rectangle to convert. |
Definition at line 3113 of file ImageView.cs.
References BioImager.ImageView.ToScreenRectF().
| System.Drawing.RectangleF[] BioImager.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 3131 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| System.Drawing.RectangleF BioImager.ImageView.ToScreenSpace | ( | RectangleF | p | ) |
It converts a rectangle from world space to screen space
| RectangleF | The rectangle to convert. |
Definition at line 3122 of file ImageView.cs.
References BioImager.ImageView.ToScreenRectF().
| System.Drawing.RectangleF[] BioImager.ImageView.ToScreenSpace | ( | RectangleF[] | p | ) |
It takes an array of RectangleF objects and returns an array of RectangleF objects
| p | The rectangle to convert |
Definition at line 3145 of file ImageView.cs.
References BioImager.ImageView.ToScreenSpace().
| float BioImager.ImageView.ToScreenW | ( | double | x | ) |
ToScreenW(x) = x * PxWmicron
| x | the x coordinate of the point to be converted |
Definition at line 3174 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, and BioImager.ImageView.PxWmicron.
Referenced by BioImager.ImageView.GoToImage().
| double BioImager.ImageView.ToViewH | ( | double | d | ) |
Convert a distance in microns to a distance in pixels
| d | the distance in microns |
Definition at line 2945 of file ImageView.cs.
References BioImager.ImageView.PxHmicron.
Referenced by BioImager.ImageView.DrawView(), and BioImager.ImageView.RenderFrame().
| double BioImager.ImageView.ToViewSizeH | ( | double | d | ) |
Convert a value in microns to a value in pixels
| d | the size in microns |
Definition at line 2920 of file ImageView.cs.
References BioImager.ImageView.PxHmicron, and BioImager.ImageView.Resolution.
Referenced by BioImager.ImageView.ToScreenRectF(), and BioImager.ImageView.ToViewSpace().
| PointD BioImager.ImageView.ToViewSpace | ( | double | x, |
| double | y | ||
| ) |
ToViewSpace(x, y) = (ToViewSizeW(x - (ViewWidth / 2)) / Scale.Width) - Origin.X;
| x | The x coordinate of the point to convert |
| y | The y coordinate of the point to convert. |
Definition at line 2878 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.Origin, BioImager.ImageView.Resolution, BioImager.ImageView.Scale, and BioImager.ImageView.ToViewSizeH().
| PointD BioImager.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 2868 of file ImageView.cs.
References BioImager.ImageView.ToViewSpace().
| PointF BioImager.ImageView.ToViewSpace | ( | PointF | p | ) |
Convert a point from world space to view space
| PointF | The point to convert |
Definition at line 2858 of file ImageView.cs.
References BioImager.ImageView.ToViewSpace().
Referenced by BioImager.ImageView.ImageToViewSpace(), BioImager.ImageView.ToScreenRectF(), and BioImager.ImageView.ToViewSpace().
| double BioImager.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 2935 of file ImageView.cs.
References BioImager.ImageView.PxWmicron.
Referenced by BioImager.ImageView.DrawView(), and BioImager.ImageView.RenderFrame().
| void BioImager.ImageView.UpdateImage | ( | ) |
It takes a 16-bit image, converts it to 8-bit, and then converts it to a DirectX texture
Definition at line 1405 of file ImageView.cs.
References BioImager.ImageView.UpdateImages().
Referenced by BioImager.ImageJ.RunOnImage().
| void BioImager.ImageView.UpdateImages | ( | ) |
It takes a list of images, and for each image, it gets the image at the current Z, C, T coordinates, and then converts it to a bitmap
Definition at line 1295 of file ImageView.cs.
References BioImager.DBitmap.FromImage(), BioImager.BioImage.GetEmission(), BioImager.BioImage.GetFiltered(), BioImager.BioImage.GetRGBBitmap(), BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.InitGUI(), BioImager.ImageView.Mode, BioImager.ImageView.PyramidalOrigin, BioImager.ImageView.SelectedIndex, and BioImager.BioImage.UpdateBuffersPyramidal().
Referenced by BioImager.ImageView.AddImage(), BioImager.ImageView.DrawView(), BioImager.ImageView.ImageView(), BioImager.ImageView.RenderFrame(), BioImager.BioImage.To16Bit(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To32Bit(), BioImager.BioImage.To48Bit(), BioImager.BioImage.To8Bit(), BioImager.Tools.ToolUp(), and BioImager.ImageView.UpdateImage().
| void BioImager.ImageView.UpdateOverlay | ( | ) |
If hardware acceleration is enabled, render the frame. Otherwise, set a flag to update the overlay and invalidate the overlay picture box
Definition at line 967 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, and BioImager.ImageView.RenderFrame().
Referenced by BioImager.ImageView.ImageView_KeyDown(), and BioImager.ImageView.PasteSelection().
| void BioImager.ImageView.UpdateRGBChannels | ( | ) |
"If the user has selected a channel, then set the channel to the selected index, otherwise set it to 0."
The above function is called when the user changes the channel selection
Definition at line 842 of file ImageView.cs.
Referenced by BioImager.ImageView.InitGUI().
| void BioImager.ImageView.UpdateSelectBoxSize | ( | float | size | ) |
This function is called from the Unity Editor when the user changes the size of the select box
| size | The size of the box that will be drawn around the ROI. |
Definition at line 959 of file ImageView.cs.
| void BioImager.ImageView.UpdateStatus | ( | ) |
It updates the status bar of the image viewer
Definition at line 980 of file ImageView.cs.
References BioImager.ImageView.Mode, and BioImager.ImageView.Resolution.
Referenced by BioImager.ImageView.UpdateView().
| void BioImager.ImageView.UpdateView | ( | ) |
If hardware acceleration is enabled, render the frame. Otherwise, invalidate the picture box.
Definition at line 1023 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.RenderFrame(), and BioImager.ImageView.UpdateStatus().
Referenced by BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageView(), BioImager.ImageView.ImageView_KeyDown(), BioImager.ImageView.MoveStageToImage(), BioImager.ImageJ.RunOnImage(), BioImager.Stage.SetPosition(), BioImager.BioImage.To16Bit(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To32Bit(), BioImager.BioImage.To48Bit(), and BioImager.BioImage.To8Bit().
| void BioImager.ImageView.UpdateView | ( | bool | refresh | ) |
Update the status of the application and then render the frame
| refresh | boolean |
Definition at line 1276 of file ImageView.cs.
References BioImager.ImageView.HardwareAcceleration, BioImager.ImageView.RenderFrame(), and BioImager.ImageView.UpdateStatus().
| Image BioImager.ImageView.Buf = null |
Definition at line 207 of file ImageView.cs.
|
static |
Definition at line 190 of file ImageView.cs.
| Direct2D BioImager.ImageView.dx = null |
Definition at line 165 of file ImageView.cs.
| string BioImager.ImageView.filepath = "" |
Definition at line 232 of file ImageView.cs.
Definition at line 211 of file ImageView.cs.
| bool BioImager.ImageView.init = false |
Definition at line 208 of file ImageView.cs.
| bool BioImager.ImageView.loopC = true |
Definition at line 238 of file ImageView.cs.
| bool BioImager.ImageView.loopT = true |
Definition at line 237 of file ImageView.cs.
| bool BioImager.ImageView.loopZ = true |
Definition at line 236 of file ImageView.cs.
| int BioImager.ImageView.minSizeX = 50 |
Definition at line 234 of file ImageView.cs.
| int BioImager.ImageView.minSizeY = 20 |
Definition at line 235 of file ImageView.cs.
|
static |
Definition at line 189 of file ImageView.cs.
|
static |
Definition at line 203 of file ImageView.cs.
|
static |
Definition at line 191 of file ImageView.cs.
|
static |
Definition at line 202 of file ImageView.cs.
Definition at line 163 of file ImageView.cs.
| int BioImager.ImageView.serie = 0 |
Definition at line 233 of file ImageView.cs.
|
static |
Definition at line 205 of file ImageView.cs.
| bool BioImager.ImageView.showBROIs = true |
Definition at line 1934 of file ImageView.cs.
| bool BioImager.ImageView.showGROIs = true |
Definition at line 1933 of file ImageView.cs.
| bool BioImager.ImageView.showRROIs = true |
Definition at line 1932 of file ImageView.cs.
|
static |
Definition at line 206 of file ImageView.cs.
|
static |
Definition at line 192 of file ImageView.cs.
|
get |
Definition at line 1953 of file ImageView.cs.
|
get |
Definition at line 1945 of file ImageView.cs.
|
get |
Definition at line 1937 of file ImageView.cs.
|
get |
Definition at line 1960 of file ImageView.cs.
|
get |
Getting the B channel of the image. */.
Definition at line 606 of file ImageView.cs.
|
getset |
Setting the interval of the timer to the inverse of the fps. */.
Definition at line 892 of file ImageView.cs.
Referenced by BioImager.ImageView.ImageView().
|
staticget |
Definition at line 193 of file ImageView.cs.
|
get |
A property that returns the G channel of the image. */.
Definition at line 598 of file ImageView.cs.
|
getset |
Whether or not Hardware Acceleration should be used for rendering.
Definition at line 795 of file ImageView.cs.
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageView(), BioImager.ImageView.RenderFrame(), BioImager.Tools.ToolDown(), BioImager.Tools.ToolUp(), BioImager.ImageView.ToScreenH(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScaleH(), BioImager.ImageView.ToScreenScaleW(), BioImager.ImageView.ToScreenSpace(), BioImager.ImageView.ToScreenW(), BioImager.ImageView.ToViewSpace(), BioImager.ImageView.UpdateImages(), BioImager.ImageView.UpdateOverlay(), and BioImager.ImageView.UpdateView().
|
get |
Definition at line 621 of file ImageView.cs.
|
getset |
Definition at line 146 of file ImageView.cs.
|
get |
Current level when viewing whole-slide and pyramidal images.
Definition at line 757 of file ImageView.cs.
Referenced by BioImager.ImageView.AddImage(), BioImager.ImageView.DrawView(), BioImager.ImageView.ImageView(), and BioImager.TabsView.ResizeView().
|
get |
Definition at line 620 of file ImageView.cs.
|
getset |
Setting the view mode of the application. */.
Definition at line 496 of file ImageView.cs.
Referenced by BioImager.ImageView.GetRange(), BioImager.ImageView.ImageView(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateStatus().
|
getset |
Definition at line 3274 of file ImageView.cs.
|
getset |
Definition at line 3279 of file ImageView.cs.
|
get |
Definition at line 616 of file ImageView.cs.
|
getset |
A property of the class PointD. */.
Definition at line 643 of file ImageView.cs.
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageView_KeyDown(), BioImager.ImageView.RenderFrame(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenSpace(), and BioImager.ImageView.ToViewSpace().
|
get |
A property that returns the filepath. */.
Definition at line 582 of file ImageView.cs.
|
getset |
Only used when opening stacks.
Definition at line 476 of file ImageView.cs.
Referenced by BioImager.ImageView.ToScreenH(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScaleH(), BioImager.ImageView.ToViewH(), and BioImager.ImageView.ToViewSizeH().
|
getset |
Only used when opening stacks.
Definition at line 462 of file ImageView.cs.
Referenced by BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScaleW(), BioImager.ImageView.ToScreenW(), and BioImager.ImageView.ToViewW().
|
getset |
Setting the value of the pyramidalOrigin variable. */.
Definition at line 653 of file ImageView.cs.
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageToViewSpace(), BioImager.BioImage.SaveOMESeries(), BioImager.ImageView.ToScreenRectF(), and BioImager.ImageView.UpdateImages().
|
getset |
Definition at line 3265 of file ImageView.cs.
|
get |
A property that returns the R channel of the selected image. */.
Definition at line 590 of file ImageView.cs.
|
getset |
A property of the class ImageViewer. It is a getter and setter for the resolution of the image.
Definition at line 670 of file ImageView.cs.
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.ToViewSizeH(), BioImager.ImageView.ToViewSpace(), and BioImager.ImageView.UpdateStatus().
|
getset |
Scale when opening image stacks.
Definition at line 772 of file ImageView.cs.
Referenced by BioImager.ImageView.DrawView(), BioImager.ImageView.GetScale(), BioImager.ImageView.GoToImage(), BioImager.ImageView.ImageView_KeyDown(), BioImager.ImageView.RenderFrame(), BioImager.ImageView.ToScreenRectF(), BioImager.ImageView.ToScreenScaleH(), BioImager.ImageView.ToScreenScaleW(), and BioImager.ImageView.ToViewSpace().
|
staticget |
Definition at line 181 of file ImageView.cs.
|
staticget |
Definition at line 166 of file ImageView.cs.
|
getset |
A property that is used to set the selected index of the image. */.
Definition at line 215 of file ImageView.cs.
Referenced by BioImager.ImageView.AddImage(), BioImager.ImageView.DrawView(), BioImager.ImageJ.RunOnImage(), and BioImager.ImageView.UpdateImages().
|
getset |
Setting the visibility of the trackBarPanel. */.
Definition at line 366 of file ImageView.cs.
|
getset |
Definition at line 362 of file ImageView.cs.
|
getset |
Definition at line 241 of file ImageView.cs.
|
getset |
Setting the value of the property ShowStatus. */.
Definition at line 426 of file ImageView.cs.
|
getset |
Setting the interval of the timer to the value of the timefps variable. */.
Definition at line 877 of file ImageView.cs.
Referenced by BioImager.ImageView.ImageView().
|
get |
Definition at line 231 of file ImageView.cs.
|
get |
A property that returns a ContextMenuStrip object. */.
Definition at line 831 of file ImageView.cs.
Referenced by BioImager.App.GetContextItems(), and BioImager.App.GetContextMenuItemFromPath().
|
get |
Definition at line 632 of file ImageView.cs.
|
get |
Definition at line 622 of file ImageView.cs.
|
getset |
Setting the interval of the timer to the value of the fps. */.
Definition at line 862 of file ImageView.cs.
Referenced by BioImager.ImageView.ImageView().