![]() |
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.
|
Classes | |
| class | ImageJDesc |
| class | WellPlate |
Public Types | |
| enum | ImageType |
Public Member Functions | |
| BioImage | Copy (bool rois) |
| BioImage | Copy () |
| void | SetLabelMacroResolutions () |
| double | GetLevelDownsample (int level) |
| Get the downsampling factor of a given level. More... | |
| int | LevelFromResolution (double Resolution) |
| Returns the level of a given resolution. More... | |
| double | GetUnitPerPixel (int level) |
| Get Unit Per Pixel for pyramidal images. More... | |
| void | UpdateBuffersPyramidal () |
| Updates the Buffers based on current pyramidal origin and resolution. More... | |
| void | To8Bit () |
| Converts a 16-bit image to an 8-bit image. More... | |
| void | To16Bit () |
| Converts the image to 16 bit. More... | |
| void | To24Bit () |
| Converts the image to 24 bit. More... | |
| void | To32Bit () |
| Converts the image to 32 bit. More... | |
| void | To48Bit () |
| void | RotateFlip (AForge.RotateFlipType rot) |
| void | Bake (int rmin, int rmax, int gmin, int gmax, int bmin, int bmax) |
| void | Bake (IntRange rf, IntRange gf, IntRange bf) |
| void | UpdateCoords () |
| It takes a list of images and assigns them to a 3D array of coordinates. More... | |
| void | UpdateCoords (int sz, int sc, int st) |
| void | UpdateCoords (int sz, int sc, int st, string order) |
| double | ToImageSizeX (double d) |
| double | ToImageSizeY (double d) |
| double | ToImageSpaceX (double x) |
| double | ToImageSpaceY (double y) |
| PointD | ToImageSpace (PointD p) |
| PointD[] | ToImageSpace (List< PointD > p) |
| PointF[] | ToImageSpace (PointF[] p) |
| RectangleF | ToImageSpace (RectangleD p) |
| PointD | ToStageSpace (PointD p) |
| PointD | ToStageSpace (PointD p, int resolution) |
| RectangleD | ToStageSpace (RectangleD p) |
| PointD[] | ToStageSpace (PointD[] p) |
| BioImage (string file) | |
| BioImage[] | SplitChannels () |
| Bitmap | GetImageByCoord (int z, int c, int t) |
| Bitmap | GetBitmap (int z, int c, int t) |
| int | GetIndex (int ix, int iy) |
| int | GetIndexRGB (int ix, int iy, int index) |
| ushort | GetValue (ZCTXY coord) |
| ushort | GetValueRGB (ZCTXY coord, int index) |
| ushort | GetValue (ZCT coord, int x, int y) |
| ushort | GetValue (int z, int c, int t, int x, int y) |
| ushort | GetValueRGB (ZCT coord, int x, int y, int RGBindex) |
| ushort | GetValueRGB (int z, int c, int t, int x, int y, int RGBindex) |
| void | SetValue (ZCTXY coord, ushort value) |
| void | SetValue (int x, int y, int ind, ushort value) |
| void | SetValue (int x, int y, ZCT coord, ushort value) |
| void | SetValueRGB (ZCTXY coord, int RGBindex, ushort value) |
| Bitmap | GetBitmap (ZCT coord) |
| Bitmap | GetFiltered (ZCT coord, IntRange r, IntRange g, IntRange b) |
| Bitmap | GetFiltered (int ind, IntRange r, IntRange g, IntRange b) |
| UnmanagedImage | GetChannelImage (int ind, short s) |
| Bitmap | GetEmission (ZCT coord, IntRange rf, IntRange gf, IntRange bf) |
| Bitmap | GetRGBBitmap (ZCT coord, IntRange rf, IntRange gf, IntRange bf) |
| List< ROI > | GetAnnotations (ZCT coord) |
| List< ROI > | GetAnnotations (int Z, int C, int T) |
| void | StackThreshold (bool bit16) |
| void | Update () |
More... | |
| void | Dispose () |
| override string | ToString () |
Static Public Member Functions | |
| static BioImage | Copy (BioImage b, bool rois) |
| static BioImage | Copy (BioImage b) |
| static BioImage | CopyInfo (BioImage b, bool copyAnnotations, bool copyChannels) |
| static PointD | ToStageSpace (PointD p, double physicalSizeX, double physicalSizeY, double volumeX, double volumeY) |
| static RectangleD | ToStageSpace (RectangleD p, double physicalSizeX, double physicalSizeY, double volumeX, double volumeY) |
| static PointD[] | ToStageSpace (PointD[] p, double physicalSizeX, double physicalSizeY, double volumeX, double volumeY) |
| static BioImage | Substack (BioImage orig, int ser, int zs, int ze, int cs, int ce, int ts, int te) |
| static BioImage | MergeChannels (BioImage b2, BioImage b) |
| static BioImage | MergeChannels (string bname, string b2name) |
| static BioImage | MergeZ (BioImage b) |
| static BioImage | MergeT (BioImage b) |
| static BioImage[] | SplitChannels (BioImage bb) |
| static BioImage[] | SplitChannels (string name) |
| static unsafe Bitmap | GetBitmapRGB (int w, int h, PixelFormat px, byte[] bts) |
| static void | Initialize () |
| static void | SaveFile (string file, string ID) |
| static void | SaveSeries (string[] IDs, string file) |
| static BioImage[] | OpenSeries (string file, bool tab) |
| static BioImage | OpenFile (string file) |
| static BioImage | OpenFile (string file, bool tab) |
| static BioImage | OpenFile (string file, int series, bool tab, bool addToImages) |
| static BioImage | OpenFile (string file, int series, bool tab, bool addToImages, bool tile, int tileX, int tileY, int tileSizeX, int tileSizeY) |
| static bool | isTiffSeries (string file) |
| static bool | isOME (string file) |
| static bool | isOMESeries (string file) |
| static void | SaveOME (string file, string ID) |
| static void | SaveOMESeries (BioImage[] bms, string f, bool planes) |
| static void | SaveOMESeries (string[] files, string f, bool planes) |
| static int | GetBands (PixelFormat format) |
| static void | SaveOMEPyramidal (BioImage[] bms, string file, Enums.ForeignTiffCompression compression, int compressionLevel) |
| static BioImage | OpenOME (string file, bool tab) |
| static BioImage | OpenOME (string file, int serie) |
| static BioImage | FilesToStack (string[] files, int sizeZ, int sizeC, int sizeT) |
| static BioImage | FolderToStack (string path, bool tab) |
| static void | OpenVips (BioImage b, int pagecount) |
| static Bitmap | ExtractRegionFromTiledTiff (BioImage b, int x, int y, int width, int height, int res) |
| static BioImage | OpenOME (string file, int serie, bool tab, bool addToImages, bool tile, int tilex, int tiley, int tileSizeX, int tileSizeY, bool useOpenSlide=true) |
| The function "OpenOME" opens a bioimage file, with options to specify the series, whether to More... | |
| static Bitmap | GetTile (BioImage b, ZCT coord, int serie, int tilex, int tiley, int tileSizeX, int tileSizeY) |
| static Bitmap | GetTile (BioImage b, int i, int serie, int tilex, int tiley, int tileSizeX, int tileSizeY) |
| static int | GetBitsPerPixel (int bt) |
| static int | GetBitMaxValue (int bt) |
| static PixelFormat | GetPixelFormat (int rgbChannelCount, int bitsPerPixel) |
| static PixelFormat | GetPixelFormat (int rgbChannelCount, ome.xml.model.enums.PixelType px) |
| static BioImage[] | OpenOMESeries (string file, bool tab, bool addToImages) |
| static async Task | OpenAsync (string file, bool OME, bool newtab, bool images) |
| static async Task | OpenAsync (string[] files, bool OME, bool tab, bool images) |
| static async Task | SaveAsync (string file, string id, int serie, bool ome) |
| The SaveAsync function saves data to a file asynchronously. More... | |
| static async Task | SaveSeriesAsync (BioImage[] imgs, string file, bool ome) |
The function SaveSeriesAsync saves a series of BioImage objects to a file asynchronously. More... | |
| static async Task | SavePyramidalAsync (BioImage[] imgs, string file, Enums.ForeignTiffCompression com, int compLevel) |
The function SavePyramidalAsync saves an array of BioImage objects as a pyramidal TIFF file asynchronously. More... | |
| static void | Open (string file) |
| static void | Open (string[] files) |
| static BioImage | ImagesToStack (string[] files, bool tab) |
| static void | Update (BioImage b) |
| static void | Save (string file, string ID) |
| static bool | OMESupport () |
| static bool | VipsSupport (string file) |
| static string | OpenXML (string file) |
| static List< ROI > | OpenOMEROIs (string file, int series) |
| static string | ROIsToString (List< ROI > Annotations) |
| static string | ROIToString (ROI an) |
| static ROI | StringToROI (string sts) |
| static void | ExportROIsCSV (string filename, List< ROI > Annotations) |
| static List< ROI > | ImportROIsCSV (string filename) |
| static void | ExportROIFolder (string path, string filename) |
| static void | AutoThreshold (BioImage b, bool updateImageStats) |
| static void | AutoThreshold () |
| It takes the current image, and finds the best threshold value for it. More... | |
| static void | AutoThresholdThread (BioImage b) |
| static int | FindFocus (BioImage im, int Channel, int Time) |
| static long | CalculateFocusQuality (Bitmap b) |
| static BioImage | operator/ (BioImage a, float b) |
| static BioImage | operator+ (BioImage a, float b) |
| static BioImage | operator- (BioImage a, float b) |
| static BioImage | operator/ (BioImage a, ColorS b) |
| static BioImage | operator* (BioImage a, ColorS b) |
| static BioImage | operator+ (BioImage a, ColorS b) |
| static BioImage | operator- (BioImage a, ColorS b) |
Public Attributes | |
| int[,,] | Coords |
| WellPlate | Plate = null |
| List< Channel > | Channels = new List<Channel>() |
| List< Resolution > | Resolutions = new List<Resolution>() |
| List< AForge.Bitmap > | Buffers = new List<AForge.Bitmap>() |
| List< NetVips.Image > | vipPages = new List<NetVips.Image>() |
| VolumeD | Volume |
| List< ROI > | Annotations = new List<ROI>() |
| string | filename = "" |
| string | script = "" |
| int[] | rgbChannels = new int[3] |
| int | bitsPerPixel |
| int | imagesPerSeries = 0 |
| int | seriesCount = 1 |
| double | frameInterval = 0 |
| bool | littleEndian = false |
| bool | isGroup = false |
| long | loadTimeMS = 0 |
| long | loadTimeTicks = 0 |
| bool | selected = false |
| OpenSlideImage | openSlideImage |
| OpenSlideBase | openSlideBase |
| SlideBase | slideBase |
| SlideImage | slideImage |
| Stopwatch | watch = new Stopwatch() |
| string | file |
| bool | Loading = false |
| ImageReader | imRead |
| Tiff | tifRead |
Static Public Attributes | |
| static float | progressValue = 0 |
| static bool | Planes = false |
| static string | status |
| static string | progFile |
| static LevelsLinear | filter8 = new LevelsLinear() |
| static LevelsLinear16bpp | filter16 = new LevelsLinear16bpp() |
| static Stopwatch | swatch = new Stopwatch() |
| static bool | OmeSupport = false |
| const char | NewLine = '\n' |
| const string | columns = "ROIID,ROINAME,TYPE,ID,SHAPEINDEX,TEXT,S,C,Z,T,X,Y,W,H,POINTS,STROKECOLOR,STROKECOLORW,FILLCOLOR,FONTSIZE\n" |
Properties | |
| ZCT | Coordinate [get, set] |
| ImageType | Type [get, set] |
| double | Resolution [get, set] |
| string | Filename [get, set] |
| int | RGBChannelCount [get] |
| Statistics | Statistics [get, set] |
| string | ID [get, set] |
| int | ImageCount [get] |
| double | PhysicalSizeX [get] |
| double | PhysicalSizeY [get] |
| double | PhysicalSizeZ [get] |
| double | StageSizeX [get, set] |
| double | StageSizeY [get, set] |
| double | StageSizeZ [get, set] |
| int | series [get, set] |
| Channel | RChannel [get] |
| Channel | GChannel [get] |
| Channel | BChannel [get] |
| int | SizeX [get] |
| int | SizeY [get] |
| int | SizeZ [get] |
| int | SizeC [get] |
| int | SizeT [get] |
| IntRange | RRange [get] |
| IntRange | GRange [get] |
| IntRange | BRange [get] |
| Bitmap | SelectedBuffer [get] |
| bool | isRGB [get] |
| bool | isTime [get] |
| bool | isSeries [get] |
| bool | isPyramidal [get] |
| static bool | Initialized [get] |
| int? | MacroResolution [get, set] |
| int? | LabelResolution [get, set] |
| AForge.Size | PyramidalSize [get, set] |
| PointD | PyramidalOrigin [get, set] |
| int | Level [get, set] |
| enum BioImager.BioImage.ImageType |
| BioImager.BioImage.BioImage | ( | string | file | ) |
|
static |
It takes the current image, and finds the best threshold value for it.
Definition at line 8043 of file Bio.cs.
References BioImager.BioImage.AutoThreshold().
Referenced by BioImager.BioImage.AutoThreshold(), BioImager.BioImage.AutoThresholdThread(), BioImager.BioImage.Bake(), BioImager.BioImage.MergeChannels(), BioImager.BioImage.MergeT(), BioImager.BioImage.MergeZ(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), BioImager.BioImage.SplitChannels(), BioImager.BioImage.Substack(), BioImager.BioImage.To16Bit(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To32Bit(), BioImager.BioImage.To48Bit(), and BioImager.BioImage.To8Bit().
|
static |
It takes a BioImage object, and calculates the mean histogram for each channel, and for the entire image.
The BioImage object is a class that contains a list of buffers, each of which contains a byte array of pixel data.
The function also calculates the mean histogram for each buffer, and stores it in the buffer's stats property.
The function also calculates the mean histogram for each channel, and stores it in the channel's stats property.
The function also calculates the mean histogram for the entire image, and stores it in the image's statistics property.
The mean histogram is calculated by adding up the histograms of each buffer, and then dividing by the number of buffers.
The histogram is calculated by looping through the byte array of pixel data, and incrementing the value of the histogram at the index of the pixel value.
The histogram
| BioImage | This is the image object that contains the image data. |
| updateImageStats | if true, the image stats will be updated. |
Definition at line 7969 of file Bio.cs.
Referenced by BioImager.BioImage.UpdateBuffersPyramidal().
|
static |
It creates a new thread that calls the AutoThreshold function
| BioImage | This is a class that holds the image data and some other information. |
Definition at line 8050 of file Bio.cs.
References BioImager.BioImage.AutoThreshold().
| void BioImager.BioImage.Bake | ( | int | rmin, |
| int | rmax, | ||
| int | gmin, | ||
| int | gmax, | ||
| int | bmin, | ||
| int | bmax | ||
| ) |
Bake(int rmin, int rmax, int gmin, int gmax, int bmin, int bmax)
| rmin | The minimum value of the red channel. |
| rmax | The maximum value of the red channel. |
| gmin | The minimum value of the green channel. |
| gmax | The maximum value of the green channel. |
| bmin | The minimum value of the blue channel. |
| bmax | The maximum value of the blue channel. |
Definition at line 3097 of file Bio.cs.
References BioImager.BioImage.Bake().
Referenced by BioImager.BioImage.Bake().
| void BioImager.BioImage.Bake | ( | IntRange | rf, |
| IntRange | gf, | ||
| IntRange | bf | ||
| ) |
It takes a range of values for each channel, and creates a new image with the filtered values
| IntRange | |
| IntRange | |
| IntRange |
Definition at line 3107 of file Bio.cs.
References BioImager.TabsView.AddTab(), BioImager.BioImage.AutoThreshold(), BioImager.BioImage.CopyInfo(), and BioImager.BioImage.GetFiltered().
|
static |
The function calculates the focus quality of a given bitmap image.
| Bitmap | A class representing a bitmap image, which contains information about the image's size, pixel data, and color channels. |
Definition at line 8094 of file Bio.cs.
Referenced by BioImager.BioImage.FindFocus().
| BioImage BioImager.BioImage.Copy | ( | ) |
This function copies the current BioImage object and returns a new BioImage object
Definition at line 2119 of file Bio.cs.
References BioImager.BioImage.Copy().
Referenced by BioImager.BioImage.Copy(), and BioImager.BioImage.SplitChannels().
It copies the BioImage b and returns a new BioImage object.
| BioImage | The BioImage object to copy |
| rois | If true, the ROIs will be copied. If false, the ROIs will be ignored. |
Definition at line 2063 of file Bio.cs.
Referenced by BioImager.BioImage.Copy().
| BioImage BioImager.BioImage.Copy | ( | bool | rois | ) |
Copy the image and optionally the ROIs
| rois | Boolean value indicating whether to copy the ROIs or not. |
Definition at line 2112 of file Bio.cs.
References BioImager.BioImage.Copy().
|
static |
CopyInfo() copies the information from one BioImage to another
| BioImage | the image to copy |
| copyAnnotations | true |
| copyChannels | true |
Definition at line 2130 of file Bio.cs.
Referenced by BioImager.BioImage.Bake(), BioImager.BioImage.ImagesToStack(), BioImager.BioImage.MergeT(), BioImager.BioImage.MergeZ(), and BioImager.BioImage.Substack().
| void BioImager.BioImage.Dispose | ( | ) |
It disposes of all the buffers and channels in the image, removes the image from the Images list, and then forces the garbage collector to run
Definition at line 8126 of file Bio.cs.
|
static |
ExportROIFolder(path, filename)
This function takes a folder path and a filename as input and exports all the ROIs in the folder as CSV files
| path | the path to the folder containing the OMERO ROI files |
| filename | the name of the file you want to export |
Definition at line 7927 of file Bio.cs.
References BioImager.BioImage.ExportROIsCSV(), BioImager.BioImage.OMESupport(), and BioImager.BioImage.OpenOMEROIs().
|
static |
This function takes a list of ROIs and writes them to a CSV file
| filename | the name of the file to be saved |
| Annotations | List of ROI objects |
Definition at line 7896 of file Bio.cs.
References BioImager.BioImage.ROIsToString().
Referenced by BioImager.BioImage.ExportROIFolder(), and BioImager.BioImage.SaveSeries().
|
static |
The function ExtractRegionFromTiledTiff takes a BioImage object, coordinates, width, height, and resolution as input, and returns a Bitmap object representing the extracted region from the tiled TIFF image.
| BioImage | The BioImage object represents an image file that contains multiple pages or resolutions. It contains information about the image file, such as the file path, the number of pages, and the format of each page. |
| x | The x-coordinate of the top-left corner of the region to extract from the tiled TIFF image. |
| y | The parameter "y" represents the starting y-coordinate of the region to be extracted from the tiled TIFF image. |
| width | The width parameter represents the width of the region to be extracted from the tiled TIFF image. |
| height | The height parameter represents the height of the region to be extracted from the tiled TIFF image. |
| res | The parameter "res" represents the resolution level of the tiled TIFF image. It is used to specify the level of detail or zoom level at which the image is being extracted. |
Definition at line 5812 of file Bio.cs.
Referenced by BioImager.BioImage.GetTile().
|
static |
It takes a list of files, and creates a new BioImage object with the first file in the list. Then it loops through the rest of the files, adding the buffers from each file to the new BioImage object. Finally, it updates the coordinates of the new BioImage object, and adds it to the Images list
| files | an array of file paths |
| sizeZ | number of slices in the stack |
| sizeC | number of channels |
| sizeT | number of time points |
Definition at line 5716 of file Bio.cs.
References BioImager.BioImage.OpenFile(), and BioImager.BioImage.UpdateCoords().
|
static |
The function finds the focus of a given BioImage at a specific channel and time by calculating the focus quality of each Z-plane and returning the coordinate with the highest focus quality.
| BioImage | A BioImage object that contains the image data. |
| Channel | The channel of the BioImage to analyze. A BioImage can have multiple channels, each representing a different fluorescent label or imaging modality. |
| Time | The time point at which the focus is being calculated. |
Definition at line 8067 of file Bio.cs.
References BioImager.BioImage.CalculateFocusQuality().
|
static |
It takes a folder of images and creates a stack from them
| path | the path to the folder containing the images |
Definition at line 5733 of file Bio.cs.
References BioImager.BioImage.OpenFile(), and BioImager.BioImage.UpdateCoords().
| List< ROI > BioImager.BioImage.GetAnnotations | ( | int | Z, |
| int | C, | ||
| int | T | ||
| ) |
This function returns a list of ROI objects that are associated with the specified Z, C, and T coordinates
| Z | The Z-stack index |
| C | Channel |
| T | Time |
Definition at line 4456 of file Bio.cs.
| List< ROI > BioImager.BioImage.GetAnnotations | ( | ZCT | coord | ) |
GetAnnotations() returns a list of ROI objects that are associated with the ZCT coordinate
passed in as a parameter
| ZCT | a 3D coordinate (Z, C, T) |
Definition at line 4436 of file Bio.cs.
Referenced by BioImager.BioImage.MergeChannels().
|
static |
Definition at line 5525 of file Bio.cs.
| Bitmap BioImager.BioImage.GetBitmap | ( | int | z, |
| int | c, | ||
| int | t | ||
| ) |
| Bitmap BioImager.BioImage.GetBitmap | ( | ZCT | coord | ) |
This function returns a Bitmap object from the image data stored in the OME-TIFF file
| ZCT | Z = Z-stack, C = channel, T = timepoint |
Definition at line 4138 of file Bio.cs.
References BioImager.BioImage.GetImageByCoord().
|
static |
It takes a byte array of RGB or RGBA data and converts it to a Bitmap
| w | width of the image |
| h | height of the image |
| PixelFormat | The pixel format of the image. |
| bts | the byte array of the image |
Definition at line 4270 of file Bio.cs.
|
static |
It returns the maximum value of a bit.
| bt | bit depth |
Definition at line 6908 of file Bio.cs.
|
static |
If the number is less than or equal to 255, then it's 8 bits. If it's less than or equal
to 512, then it's 9 bits. If it's less than or equal to 1023, then it's 10 bits. If it's less than or equal to 2047, then it's 11 bits. If it's less than or equal to 4095, then it's 12 bits. If it's less than or equal to 8191, then it's 13 bits. If it's less than or equal to 16383, then it's 14 bits. If it's less than or equal to 32767, then it's 15 bits. If it's less than or equal to 65535, then it's 16 bits
| bt | The number of bits per pixel. |
Definition at line 6882 of file Bio.cs.
| UnmanagedImage BioImager.BioImage.GetChannelImage | ( | int | ind, |
| short | s | ||
| ) |
It takes an image, and returns a channel of that image
| ind | the index of the buffer |
| s | 0, 1, 2 |
Definition at line 4185 of file Bio.cs.
| Bitmap BioImager.BioImage.GetEmission | ( | ZCT | coord, |
| IntRange | rf, | ||
| IntRange | gf, | ||
| IntRange | bf | ||
| ) |
GetEmission() returns an UnmanagedImage object that is a composite of the emission
channels
| ZCT | Z, C, T coordinates |
| IntRange | |
| IntRange | |
| IntRange |
Definition at line 4210 of file Bio.cs.
Referenced by BioImager.ImageView.UpdateImages().
| Bitmap BioImager.BioImage.GetFiltered | ( | int | ind, |
| IntRange | r, | ||
| IntRange | g, | ||
| IntRange | b | ||
| ) |
It takes an image, and returns a filtered version of that image
| ind | the index of the buffer to be filtered |
| IntRange | |
| IntRange | |
| IntRange |
Definition at line 4163 of file Bio.cs.
| Bitmap BioImager.BioImage.GetFiltered | ( | ZCT | coord, |
| IntRange | r, | ||
| IntRange | g, | ||
| IntRange | b | ||
| ) |
Get the image at the specified ZCT coordinate, and return a filtered version of it
| ZCT | a 3-tuple of integers (z, c, t) |
| IntRange | |
| IntRange | |
| IntRange |
Definition at line 4150 of file Bio.cs.
References BioImager.BioImage.GetFiltered().
Referenced by BioImager.BioImage.Bake(), BioImager.BioImage.GetFiltered(), and BioImager.ImageView.UpdateImages().
| Bitmap BioImager.BioImage.GetImageByCoord | ( | int | z, |
| int | c, | ||
| int | t | ||
| ) |
Get the image at the specified coordinates
| z | the z-stack index |
| c | channel |
| t | time |
Definition at line 3901 of file Bio.cs.
Referenced by BioImager.BioImage.GetBitmap().
| int BioImager.BioImage.GetIndex | ( | int | ix, |
| int | iy | ||
| ) |
GetIndex(x,y) = (y * stridex + x) * 2
The stridex is the width of the image in bytes.
The stridey is the height of the image in bytes.
The stridex and stridey are the same for a square image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The stridex and stridey are different for a rectangular image.
The
| ix | x coordinate of the pixel |
| iy | The y coordinate of the pixel |
Definition at line 3948 of file Bio.cs.
| int BioImager.BioImage.GetIndexRGB | ( | int | ix, |
| int | iy, | ||
| int | index | ||
| ) |
The function returns the index of the pixel in the buffer
| ix | x coordinate of the pixel |
| iy | The y coordinate of the pixel |
| index | 0 = Red, 1 = Green, 2 = Blue |
Definition at line 3971 of file Bio.cs.
| double BioImager.BioImage.GetLevelDownsample | ( | int | level | ) |
Get the downsampling factor of a given level.
| level | The desired level. |
<return> The downsampling factor for this level. </return>
| OpenSlideException |
Definition at line 2578 of file Bio.cs.
Referenced by BioImager.BioImage.GetUnitPerPixel(), and BioImager.BioImage.LevelFromResolution().
|
static |
If the bits per pixel is 8, then the pixel format is either 8bppIndexed, 24bppRgb, or 32bppArgb. If the bits per pixel is 16, then the pixel format is either 16bppGrayScale or 48bppRgb
| rgbChannelCount | The number of channels in the image. For example, a grayscale image has 1 channel, a color image has 3 channels (red, green, blue). |
| bitsPerPixel | 8 or 16 |
Definition at line 6938 of file Bio.cs.
Referenced by BioImager.BioImage.OpenOME().
|
static |
The function returns the appropriate PixelFormat based on the number of RGB channels and the pixel type.
| rgbChannelCount | The rgbChannelCount parameter represents the number of channels in the RGB color model. It can have a value of either 1 (for grayscale images) or 3 (for RGB color images). |
| px | The parameter "px" is of type ome.xml.model.enums.PixelType. It represents the pixel type of the image, such as INT8, UINT8, INT16, or UINT16. |
Definition at line 6968 of file Bio.cs.
| Bitmap BioImager.BioImage.GetRGBBitmap | ( | ZCT | coord, |
| IntRange | rf, | ||
| IntRange | gf, | ||
| IntRange | bf | ||
| ) |
Get the RGB bitmap for the specified ZCT coordinate
| ZCT | Z, C, T coordinates |
| IntRange | |
| IntRange | |
| IntRange |
Definition at line 4237 of file Bio.cs.
Referenced by BioImager.ImageView.UpdateImages().
|
static |
It reads a tile from a file, and returns a bitmap
| BioImage | This is a class that contains the image file name, the image reader, and the coordinates of the image. |
| i | the Z, C, T image index |
| serie | the series number (0-based) |
| tilex | the x coordinate of the tile |
| tiley | the y coordinate of the tile |
| tileSizeX | the width of the tile |
| tileSizeY | the height of the tile |
Definition at line 6764 of file Bio.cs.
References BioImager.BioImage.ExtractRegionFromTiledTiff().
|
static |
It reads a tile from a file, and returns a bitmap
| BioImage | This is a class that contains the image file name, the image reader, and the coordinates of the image. |
| ZCT | Z, C, T |
| serie | the series number (0-based) |
| tilex | the x coordinate of the tile |
| tiley | the y coordinate of the tile |
| tileSizeX | the width of the tile |
| tileSizeY | the height of the tile |
Definition at line 6678 of file Bio.cs.
References BioImager.BioImage.ExtractRegionFromTiledTiff().
Referenced by BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), BioImager.SlideImage.ReadRegion(), and BioImager.SlideImage.TryReadRegion().
| double BioImager.BioImage.GetUnitPerPixel | ( | int | level | ) |
Get Unit Per Pixel for pyramidal images.
| level |
Definition at line 2617 of file Bio.cs.
References BioImager.BioImage.GetLevelDownsample().
Referenced by BioImager.ImageView.GoToImage().
| ushort BioImager.BioImage.GetValue | ( | int | z, |
| int | c, | ||
| int | t, | ||
| int | x, | ||
| int | y | ||
| ) |
This function returns the value of the pixel at the specified ZCTXY coordinates
| z | The Z-plane of the image. |
| c | channel |
| t | time |
| x | x coordinate of the pixel |
| y | the y coordinate of the pixel |
Definition at line 4056 of file Bio.cs.
References BioImager.BioImage.GetValue().
| ushort BioImager.BioImage.GetValue | ( | ZCT | coord, |
| int | x, | ||
| int | y | ||
| ) |
Get the value of the pixel at the given coordinates
| ZCT | Z is the Z-plane, C is the channel, T is the timepoint |
| x | x coordinate of the pixel |
| y | The y coordinate of the pixel |
Definition at line 4043 of file Bio.cs.
References BioImager.BioImage.GetValueRGB().
| ushort BioImager.BioImage.GetValue | ( | ZCTXY | coord | ) |
If the coordinate is within the bounds of the image, then return the value of the pixel at that coordinate
| ZCTXY | a struct that contains the X, Y, Z, C, and T coordinates of the pixel. |
Definition at line 3992 of file Bio.cs.
References BioImager.BioImage.GetValueRGB().
Referenced by BioImager.BioImage.GetValue(), and BioImager.BioImage.GetValueRGB().
| ushort BioImager.BioImage.GetValueRGB | ( | int | z, |
| int | c, | ||
| int | t, | ||
| int | x, | ||
| int | y, | ||
| int | RGBindex | ||
| ) |
This function returns the value of the pixel at the specified coordinates in the specified channel, frame, and RGB index
| z | The Z-plane index |
| c | channel |
| t | time index |
| x | x coordinate of the pixel |
| y | The y coordinate of the pixel |
| RGBindex | 0 = Red, 1 = Green, 2 = Blue |
Definition at line 4089 of file Bio.cs.
References BioImager.BioImage.GetValueRGB().
| ushort BioImager.BioImage.GetValueRGB | ( | ZCT | coord, |
| int | x, | ||
| int | y, | ||
| int | RGBindex | ||
| ) |
Get the value of a pixel at a given coordinate, x, y, and RGB index
| ZCT | The ZCT coordinate of the image. |
| x | x coordinate of the pixel |
| y | the y coordinate of the pixel |
| RGBindex | 0 = Red, 1 = Green, 2 = Blue |
Definition at line 4068 of file Bio.cs.
References BioImager.BioImage.GetValue(), and BioImager.BioImage.GetValueRGB().
| ushort BioImager.BioImage.GetValueRGB | ( | ZCTXY | coord, |
| int | index | ||
| ) |
It takes a coordinate and an index and returns the value of the pixel at that coordinate
| ZCTXY | a struct that contains the Z, C, T, X, and Y coordinates of the pixel. |
| index | 0, 1, 2 |
Definition at line 4017 of file Bio.cs.
Referenced by BioImager.BioImage.GetValue(), and BioImager.BioImage.GetValueRGB().
|
static |
It takes a list of files, opens them, and then combines them into a single BioImage object
| files | an array of file paths |
Definition at line 7199 of file Bio.cs.
References BioImager.BioImage.CopyInfo(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), and BioImager.BioImage.UpdateCoords().
|
static |
It reads the CSV file and converts each line into a ROI object
| filename | The path to the CSV file. |
Definition at line 7907 of file Bio.cs.
References BioImager.BioImage.StringToROI().
Referenced by BioImager.BioImage.OpenFile().
|
static |
We initialize OME on a seperate thread so the user doesn't have to wait for initialization to view images.
Definition at line 4470 of file Bio.cs.
References BioImager.BioImage.OMESupport().
Referenced by BioImager.App.Initialize().
|
static |
If the file is a TIFF, check the ImageDescription tag for the string "OME-XML". If it's there, return true. If it's not a TIFF, return true. If it's a PNG, JPG, JPEG, or BMP, return false
| file | the path to the image file |
Definition at line 5105 of file Bio.cs.
Referenced by BioImager.BioImage.isOMESeries(), and BioImager.BioImage.OpenFile().
|
static |
If the file is an OME file and has more than one series, return true
| file | the file to be checked |
Definition at line 5135 of file Bio.cs.
References BioImager.BioImage.isOME().
|
static |
The function checks if the image is a Tiff image and if it is, it checks if the image is a
series of images
| file | the path to the file |
Definition at line 5070 of file Bio.cs.
| int BioImager.BioImage.LevelFromResolution | ( | double | Resolution | ) |
Returns the level of a given resolution.
| Resolution |
Definition at line 2589 of file Bio.cs.
References BioImager.BioImage.GetLevelDownsample().
Referenced by BioImager.SlideSourceBase.GetSlice().
This function takes two images and merges them together
Definition at line 3579 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.GetAnnotations(), and BioImager.BioImage.StackThreshold().
Referenced by BioImager.BioImage.MergeChannels().
|
static |
MergeChannels(b, b2) takes two images, b and b2, and merges the channels of b2 into b
| bname | The name of the first image |
| b2name | The name of the image to merge with the first image. |
Definition at line 3670 of file Bio.cs.
References BioImager.BioImage.MergeChannels().
It takes a 3D image and merges the time dimension into a single image
| BioImage | The image to be processed |
Definition at line 3726 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.CopyInfo(), BioImager.BioImage.StackThreshold(), and BioImager.BioImage.UpdateCoords().
It takes a 3D image and merges the Z-stack into a single 2D image
| BioImage | The image to be merged |
Definition at line 3681 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.CopyInfo(), BioImager.BioImage.StackThreshold(), and BioImager.BioImage.UpdateCoords().
|
static |
The function checks if the operating system is macOS and displays a message if OME images are not supported, otherwise it sets OmeSupport to true.
Definition at line 7268 of file Bio.cs.
Referenced by BioImager.BioImage.ExportROIFolder(), BioImager.BioImage.Initialize(), BioImager.BioImage.OpenOME(), BioImager.BioImage.OpenOMEROIs(), BioImager.BioImage.SaveOME(), and BioImager.BioImage.SaveOMESeries().
|
static |
It opens a file
| file | The file to open. |
Definition at line 7180 of file Bio.cs.
References BioImager.BioImage.OpenFile().
Referenced by BioImager.BioImage.Open(), and BioImager.BioImage.OpenSeries().
|
static |
It opens a file
| files | The files to open. |
Definition at line 7187 of file Bio.cs.
References BioImager.BioImage.Open().
|
static |
It opens a file in a new thread.
| file | The file to open |
Definition at line 7046 of file Bio.cs.
Referenced by BioImager.BioImage.OpenAsync().
|
static |
It opens a file asynchronously
| files | The file(s) to open. |
Definition at line 7057 of file Bio.cs.
References BioImager.BioImage.OpenAsync().
|
static |
This function opens a file and returns a BioImage object
| file | The path to the file to open. |
Definition at line 4644 of file Bio.cs.
References BioImager.BioImage.OpenFile().
Referenced by BioImager.BioImage.FilesToStack(), BioImager.BioImage.FolderToStack(), BioImager.BioImage.ImagesToStack(), BioImager.BioImage.Open(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenSeries(), BioImager.ImageJ.RunOnImage(), and BioImager.BioImage.Update().
|
static |
|
static |
It opens a TIFF file and returns a BioImage object
| file | the file path |
| series | the series number of the image to open |
Definition at line 4658 of file Bio.cs.
References BioImager.BioImage.OpenFile().
|
static |
The OpenFile function in C# opens a BioImage file, reads its metadata, and loads the image data into a BioImage object.
| file | The file path of the bioimage to be opened. |
| series | The series parameter is an integer that specifies the series number of the image to open. |
| tab | The "tab" parameter is a boolean value that determines whether the BioImage should be opened in a new tab or not. If set to true, the BioImage will be opened in a new tab. If set to false, the BioImage will be opened in the current tab. |
| addToImages | A boolean value indicating whether the BioImage should be added to the Images collection. |
| tile | The "tile" parameter is a boolean value that determines whether the image should be opened as a tiled image or not. If set to true, the image will be opened as a tiled image. If set to false, the image will be opened as a regular image. |
| tileX | The tileX parameter is an integer that represents the starting X coordinate of the tile. It is used when opening a tiled image to specify the position of the tile within the image. |
| tileY | The tileY parameter is used to specify the starting Y coordinate of the tile when opening a tiled image. It determines the position of the tile within the image. |
| tileSizeX | The tileSizeX parameter is the width of each tile in pixels. It is used when opening a tiled TIFF image to specify the size of the tiles. |
| tileSizeY | The tileSizeY parameter is the height of each tile in pixels when the image is tiled. |
Definition at line 4784 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.GetTile(), BioImager.BioImage.ImportROIsCSV(), BioImager.BioImage.isOME(), BioImager.BioImage.OpenOME(), BioImager.BioImage.OpenOMEROIs(), BioImager.BioImage.OpenVips(), BioImager.BioImage.ImageJDesc.SetString(), BioImager.BioImage.StackThreshold(), BioImager.BioImage.StringToROI(), BioImager.BioImage.ToString(), BioImager.BioImage.UpdateCoords(), and BioImager.BioImage.VipsSupport().
|
static |
The function "OpenOME" opens a bioimage file in the OME format and returns the first image in the series.
| file | The "file" parameter is a string that represents the file path or name of the OME file that you want to open. |
| tab | The "tab" parameter is a boolean value that determines whether the image is opened in a new tab. |
Definition at line 5684 of file Bio.cs.
References BioImager.BioImage.OMESupport(), and BioImager.BioImage.OpenOMESeries().
Referenced by BioImager.BioImage.ImagesToStack(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), BioImager.BioImage.OpenOMESeries(), and BioImager.BioImage.SaveOMESeries().
|
static |
The first parameter is a string, the second is an integer
| file | the path to the file |
| serie | the image series to open |
Definition at line 5698 of file Bio.cs.
References BioImager.BioImage.OMESupport(), and BioImager.BioImage.OpenOME().
|
static |
The function "OpenOME" opens a bioimage file, with options to specify the series, whether to
The function "OpenOME" opens a bioimage file, with options to specify the series, whether to display it in a tab, whether to add it to existing images, whether to tile the image, and the tile size.
| file | The file parameter is a string that represents the file path or name of the OME (Open Microscopy Environment) file that you want to open. |
| serie | The "serie" parameter is an integer that represents the series number of the image to be opened. |
| tab | The "tab" parameter is a boolean value that determines whether the image should be opened in a new tab or not. If set to true, the image will be opened in a new tab. If set to false, the image will be opened in the current tab. |
| addToImages | The "addToImages" parameter is a boolean value that determines whether the opened image should be added to a collection of images. If set to true, the image will be added to the collection. If set to false, the image will not be added. |
| tile | The "tile" parameter is a boolean value that determines whether or not to tile the images. If set to true, the images will be tiled according to the specified tilex, tiley, tileSizeX, and tileSizeY parameters. If set to false, the images will not be tiled. |
| tilex | The parameter "tilex" is an integer that represents the starting x-coordinate of the tile. |
| tiley | The parameter "tiley" is used to specify the number of tiles in the y-direction when tiling the image. |
| tileSizeX | The tileSizeX parameter specifies the width of each tile in pixels when tiling the images. |
| tileSizeY | The tileSizeY parameter is the height of each tile in pixels when tiling the images. |
Definition at line 5872 of file Bio.cs.
References BioImager.ROI.AddPoint(), BioImager.ROI.AddPoints(), BioImager.BioImage.AutoThreshold(), BioImager.BioImage.GetPixelFormat(), BioImager.BioImage.GetTile(), BioImager.SlideImage.Open(), BioImager.BioImage.StackThreshold(), BioImager.ROI.stringToPoints(), BioImager.BioImage.ToStageSpace(), and BioImager.BioImage.UpdateCoords().
|
static |
It reads the OME-XML file and converts the ROIs to a list of ROI objects
| file | the path to the OME-TIFF file |
| series | the series number of the image you want to open |
Definition at line 7347 of file Bio.cs.
References BioImager.ROI.AddPoint(), BioImager.ROI.AddPoints(), BioImager.BioImage.OMESupport(), BioImager.ROI.stringToPoints(), and BioImager.BioImage.ToStageSpace().
Referenced by BioImager.BioImage.ExportROIFolder(), and BioImager.BioImage.OpenFile().
|
static |
It opens a file, checks if it's tiled, if it is, it opens it as a tiled image, if not, it opens it as a normal image
| file | the file path |
| tab | open in new tab |
| addToImages | add to images list. |
Definition at line 6993 of file Bio.cs.
References BioImager.BioImage.OpenOME().
Referenced by BioImager.BioImage.OpenOME().
|
static |
It opens a tiff file, reads the number of pages, reads the number of channels, and then reads each page into a BioImage object.
| file | the path to the file |
| tab | open image in new tab. |
Definition at line 4612 of file Bio.cs.
References BioImager.BioImage.Open(), BioImager.BioImage.OpenFile(), and BioImager.BioImage.ImageJDesc.SetString().
|
static |
The function "OpenVips" takes a BioImage object and an integer representing the number of pages, and adds each page of the image file to the BioImage's vipPages list using the NetVips library.
| BioImage | The BioImage parameter is an object that represents a bio image. It likely contains information about the image file, such as the file path and other metadata. |
| pagecount | The parameter "pagecount" represents the number of pages in the TIFF file that needs to be loaded into the "vipPages" list of the "BioImage" object. |
Definition at line 5778 of file Bio.cs.
Referenced by BioImager.BioImage.OpenFile().
|
static |
Open the file, get the image description field, and return it as a string
| file | the path to the file |
Definition at line 7332 of file Bio.cs.
This function takes a BioImage object and a ColorS object and returns a BioImage object
| BioImage | a class that contains a list of ColorS objects. |
| ColorS | a struct that contains a byte for each color channel (R, G, B, A) |
Definition at line 8211 of file Bio.cs.
It takes a BioImage object and a ColorS object and adds the ColorS object to each buffer in the BioImage object
| BioImage | a class that contains a list of ColorS objects. |
| ColorS | a struct that contains a byte for each color channel (R, G, B, A) |
Definition at line 8226 of file Bio.cs.
This function adds a constant value to each pixel in the image
| BioImage | a class that contains a list of buffers (float[]) |
| b | the value to add to the image |
Definition at line 8168 of file Bio.cs.
The function subtracts a color from each pixel in the image
| BioImage | a class that contains a list of ColorS objects. |
| ColorS | a struct that contains a byte for each color channel (R, G, B, A) |
Definition at line 8240 of file Bio.cs.
Subtracts a scalar value from each pixel in the image
| BioImage | a class that contains a list of buffers (which are 2D arrays of floats) |
| b | the value to subtract from the image |
Definition at line 8182 of file Bio.cs.
This function divides each pixel in the image by the value of the color
| BioImage | a class that contains a list of ColorS objects. |
| ColorS | a struct that contains a byte for each color channel (R, G, B, A) |
Definition at line 8197 of file Bio.cs.
This function divides each pixel in the image by a constant value
| BioImage | a class that contains a list of buffers (which are 2D arrays of floats) |
| b | the value to divide by |
Definition at line 8153 of file Bio.cs.
|
static |
It takes a list of ROI objects and returns a string of all the ROI objects in the list
| Annotations | List of ROI objects |
Definition at line 7697 of file Bio.cs.
References BioImager.BioImage.ROIToString().
Referenced by BioImager.BioImage.ExportROIsCSV().
|
static |
This function takes an ROI object and returns a string that contains all the information about the ROI
Definition at line 7712 of file Bio.cs.
References BioImager.ROI.GetPoints().
Referenced by BioImager.ImageView.CopySelection(), BioImager.BioImage.ROIsToString(), and BioImager.BioImage.SaveSeries().
| void BioImager.BioImage.RotateFlip | ( | AForge.RotateFlipType | rot | ) |
Rotates the image by specified degrees or flips it.
| rot | The type of rotation to perform. |
Definition at line 3081 of file Bio.cs.
|
static |
It takes a file and an ID and saves the file to the ID
| file | The file to save the data to. |
| ID | The ID of the user |
Definition at line 7251 of file Bio.cs.
References BioImager.BioImage.SaveFile().
|
static |
The SaveAsync function saves data to a file asynchronously.
| file | The file parameter is a string that represents the file path or name where the data will be saved. |
| id | The "id" parameter is a string that represents an identifier for the save operation. It could be used to uniquely identify the saved data or to specify a specific location or format for the saved file. |
| serie | The "serie" parameter is an integer that represents a series or sequence number. It is used as a parameter in the SaveAsync method. |
| ome | The "ome" parameter is a boolean value that determines whether or not to perform a specific action in the saving process. |
Definition at line 7093 of file Bio.cs.
|
static |
This function takes a string array of file names and a string ID and saves the files to the database
| file | The file path to the file you want to save. |
| ID | The ID of the series you want to save. |
Definition at line 4493 of file Bio.cs.
References BioImager.BioImage.SaveSeries().
Referenced by BioImager.BioImage.Save().
|
static |
This function takes a string array of image IDs, a file name, and a number of planes. It then saves the images to the file name
| file | the file name to save the image to |
| ID | The ID of the image you want to save |
Definition at line 5156 of file Bio.cs.
References BioImager.BioImage.OMESupport(), and BioImager.BioImage.SaveOMESeries().
|
static |
Definition at line 5542 of file Bio.cs.
|
static |
This function takes a list of image files and saves them as a single OME-TIFF file
| files | an array of file paths to the images to be saved |
| f | the file name to save to |
| planes | if true, the planes will be saved as well. |
Definition at line 5169 of file Bio.cs.
References BioImager.ROI.GetPoint(), BioImager.BioImage.OMESupport(), BioImager.BioImage.OpenOME(), BioImager.ROI.PointsToString(), and BioImager.ImageView.PyramidalOrigin.
Referenced by BioImager.BioImage.SaveOME().
|
static |
Definition at line 5516 of file Bio.cs.
|
static |
The function SavePyramidalAsync saves an array of BioImage objects as a pyramidal TIFF file asynchronously.
| imgs | imgs is an array of BioImage objects. |
| file | The "file" parameter is a string that represents the file path where the pyramidal image will be saved. |
| com | The parameter "com" is of type Enums.ForeignTiffCompression, which is an enumeration representing different compression options for the TIFF file. |
| compLevel | The compLevel parameter is an integer that represents the compression level for the TIFF file. It is used to specify the level of compression to be applied to the image data when saving the pyramidal image. The higher the compression level, the smaller the file size but potentially lower image quality. |
Definition at line 7157 of file Bio.cs.
|
static |
It takes a list of image IDs, and saves them as a single multi-page TIFF file.
| An | array of IDs of the images to save |
| The | path to the file to save to. |
Definition at line 4503 of file Bio.cs.
References BioImager.BioImage.ExportROIsCSV(), BioImager.BioImage.ImageJDesc.FromImage(), BioImager.BioImage.ImageJDesc.GetString(), and BioImager.BioImage.ROIToString().
Referenced by BioImager.BioImage.SaveFile().
|
static |
The function SaveSeriesAsync saves a series of BioImage objects to a file asynchronously.
| imgs | imgs is an array of BioImage objects. |
| file | The "file" parameter is a string that represents the file path where the series of BioImages will be saved. |
| ome | The "ome" parameter is a boolean flag that indicates whether the images should be saved in OME-TIFF format or not. If "ome" is set to true, the images will be saved in OME-TIFF format. If "ome" is set to false, the images will be |
Definition at line 7126 of file Bio.cs.
| void BioImager.BioImage.SetLabelMacroResolutions | ( | ) |
Definition at line 2489 of file Bio.cs.
| void BioImager.BioImage.SetValue | ( | int | x, |
| int | y, | ||
| int | ind, | ||
| ushort | value | ||
| ) |
It sets the value of a pixel in a buffer
| x | The x coordinate of the pixel to set. |
| y | The y coordinate of the pixel to set. |
| ind | The index of the buffer to set the value in. |
| value | The value to set the pixel to. |
Definition at line 4108 of file Bio.cs.
| void BioImager.BioImage.SetValue | ( | int | x, |
| int | y, | ||
| ZCT | coord, | ||
| ushort | value | ||
| ) |
This function sets the value of a pixel at a given x,y coordinate in a given image plane
| x | x coordinate of the pixel |
| y | The y coordinate of the pixel to set. |
| ZCT | a struct that contains the Z, C, and T coordinates of the pixel |
| value | the value to set |
Definition at line 4118 of file Bio.cs.
References BioImager.BioImage.SetValue().
| void BioImager.BioImage.SetValue | ( | ZCTXY | coord, |
| ushort | value | ||
| ) |
It takes a coordinate and a value, and sets the value at that coordinate
| ZCTXY | a struct that contains the Z, C, T, X, and Y coordinates of the pixel |
| value | the value to be set |
Definition at line 4097 of file Bio.cs.
Referenced by BioImager.BioImage.SetValue().
| void BioImager.BioImage.SetValueRGB | ( | ZCTXY | coord, |
| int | RGBindex, | ||
| ushort | value | ||
| ) |
It takes a coordinate, an RGB index, and a value, and sets the value of the pixel at that coordinate to the value
| ZCTXY | a struct that contains the Z, C, T, X, and Y coordinates of the pixel |
| RGBindex | 0 = Red, 1 = Green, 2 = Blue |
| value | the value to be set |
Definition at line 4128 of file Bio.cs.
| BioImage[] BioImager.BioImage.SplitChannels | ( | ) |
It takes a single image and splits it into three images, one for each channel
Definition at line 3768 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.Copy(), and BioImager.BioImage.Substack().
Referenced by BioImager.BioImage.SplitChannels().
SplitChannels splits a BioImage into its constituent channels
| BioImage | The image to split |
Definition at line 3873 of file Bio.cs.
References BioImager.BioImage.SplitChannels().
|
static |
This function takes an image and splits it into its individual channels
| name | The name of the image to split. |
Definition at line 3882 of file Bio.cs.
References BioImager.BioImage.SplitChannels().
| void BioImager.BioImage.StackThreshold | ( | bool | bit16 | ) |
This function sets the minimum and maximum values of the image to the minimum and maximum values of the stack
| bit16 | true = 16 bit, false = 8 bit |
Definition at line 6843 of file Bio.cs.
Referenced by BioImager.BioImage.MergeChannels(), BioImager.BioImage.MergeT(), BioImager.BioImage.MergeZ(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), BioImager.BioImage.Substack(), BioImager.BioImage.To16Bit(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To48Bit(), and BioImager.BioImage.UpdateBuffersPyramidal().
|
static |
It takes a string and returns an ROI object
| sts | the string that contains the ROI data |
Definition at line 7737 of file Bio.cs.
References BioImager.ROI.AddPoints(), and BioImager.ROI.stringToPoints().
Referenced by BioImager.App.AddROI(), BioImager.BioImage.ImportROIsCSV(), BioImager.BioImage.OpenFile(), and BioImager.ImageView.PasteSelection().
|
static |
It takes a BioImage object, and returns a new BioImage object that is a subset of the original
| BioImage | the image to be processed |
| ser | series number |
| zs | starting z-plane |
| ze | end of z-stack |
| cs | channel start |
| ce | channel end |
| ts | time start |
| te | time end |
Definition at line 3529 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.CopyInfo(), and BioImager.BioImage.StackThreshold().
Referenced by BioImager.BioImage.SplitChannels().
| void BioImager.BioImage.To16Bit | ( | ) |
Converts the image to 16 bit.
Definition at line 2760 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.StackThreshold(), BioImager.BioImage.To24Bit(), BioImager.BioImage.UpdateCoords(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateView().
| void BioImager.BioImage.To24Bit | ( | ) |
Converts the image to 24 bit.
Definition at line 2863 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.StackThreshold(), BioImager.BioImage.UpdateCoords(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateView().
Referenced by BioImager.BioImage.To16Bit(), BioImager.BioImage.To32Bit(), BioImager.BioImage.To48Bit(), and BioImager.BioImage.To8Bit().
| void BioImager.BioImage.To32Bit | ( | ) |
Converts the image to 32 bit.
Definition at line 2949 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To32Bit(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateView().
Referenced by BioImager.BioImage.To32Bit().
| void BioImager.BioImage.To48Bit | ( | ) |
It converts a 16 bit image to a 48 bit image
Definition at line 2970 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.StackThreshold(), BioImager.BioImage.To24Bit(), BioImager.BioImage.UpdateCoords(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateView().
| void BioImager.BioImage.To8Bit | ( | ) |
Converts a 16-bit image to an 8-bit image.
Definition at line 2665 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.BioImage.To24Bit(), BioImager.BioImage.UpdateCoords(), BioImager.ImageView.UpdateImages(), and BioImager.ImageView.UpdateView().
| double BioImager.BioImage.ToImageSizeX | ( | double | d | ) |
| double BioImager.BioImage.ToImageSizeY | ( | double | d | ) |
| PointD[] BioImager.BioImage.ToImageSpace | ( | List< PointD > | p | ) |
Convert a list of points from stage space to image space
| p | List of points in stage space |
Definition at line 3334 of file Bio.cs.
| PointD BioImager.BioImage.ToImageSpace | ( | PointD | p | ) |
Convert a point in the stage coordinate system to a point in the image coordinate system
| PointD |
Definition at line 3322 of file Bio.cs.
Referenced by BioImager.ROI.PointsToString(), BioImager.Tools.ToolDown(), and BioImager.Tools.ToolUp().
| PointF[] BioImager.BioImage.ToImageSpace | ( | PointF[] | p | ) |
The function takes a list of points in the stage coordinate system and returns a list of
points in the image coordinate system
| p | the points to be converted |
Definition at line 3352 of file Bio.cs.
| RectangleF BioImager.BioImage.ToImageSpace | ( | RectangleD | p | ) |
Convert a rectangle in physical space to a rectangle in image space
| RectangleD |
Definition at line 3369 of file Bio.cs.
| double BioImager.BioImage.ToImageSpaceX | ( | double | x | ) |
| double BioImager.BioImage.ToImageSpaceY | ( | double | y | ) |
Convert a Y coordinate from stage space to image space
| y | the y coordinate of the point in the image |
Definition at line 3311 of file Bio.cs.
| PointD BioImager.BioImage.ToStageSpace | ( | PointD | p | ) |
This function converts a point in the image space to a point in the stage space
| PointD | A class that contains an X and Y coordinate. |
Definition at line 3384 of file Bio.cs.
Referenced by BioImager.ImageJ.RoiDecoder.getRoi(), BioImager.BioImage.OpenOME(), and BioImager.BioImage.OpenOMEROIs().
|
static |
The function takes a point in the volume space and converts it to a point in the stage
space
| PointD | A custom class that holds an X and Y coordinate. |
| physicalSizeX | The width of the stage in mm |
| physicalSizeY | The height of the stage in mm |
| volumeX | The X coordinate of the top left corner of the volume in stage space. |
| volumeY | The Y position of the top left corner of the volume in stage space. |
Definition at line 3423 of file Bio.cs.
| PointD BioImager.BioImage.ToStageSpace | ( | PointD | p, |
| int | resolution | ||
| ) |
Convert a point in the image space to a point in the stage space
| PointD | A point in the image space |
| resolution | the resolution of the image (0, 1, 2, 3, 4) |
Definition at line 3406 of file Bio.cs.
| PointD[] BioImager.BioImage.ToStageSpace | ( | PointD[] | p | ) |
This function takes a list of points in the coordinate system of the image and returns a
list of points in the coordinate system of the stage
| p | The array of points to convert |
Definition at line 3470 of file Bio.cs.
|
static |
It takes a list of points, and converts them from a coordinate system where the origin is in the center of the image, to a coordinate system where the origin is in the top left corner of the image
| p | the array of points to convert |
| physicalSizeX | The width of the image in microns |
| physicalSizeY | The height of the image in microns |
| volumeX | The X position of the volume in stage space. |
| volumeY | The Y position of the top left corner of the volume in stage space. |
Definition at line 3493 of file Bio.cs.
| RectangleD BioImager.BioImage.ToStageSpace | ( | RectangleD | p | ) |
Convert a rectangle from the coordinate space of the image to the coordinate space of the
stage
| RectangleD | A rectangle with double precision coordinates. |
Definition at line 3436 of file Bio.cs.
|
static |
This function takes a rectangle in the coordinate space of the image and converts it to
the coordinate space of the stage
| RectangleD | A rectangle with double precision. |
| physicalSizeX | The width of the physical screen in pixels |
| physicalSizeY | The height of the stage in pixels |
| volumeX | The X position of the volume in stage space. |
| volumeY | The Y position of the top of the volume in stage space. |
Definition at line 3455 of file Bio.cs.
| override string BioImager.BioImage.ToString | ( | ) |
This function returns the filename of the object, and the location of the object in the 3D space
Definition at line 8142 of file Bio.cs.
Referenced by BioImager.BioImage.OpenFile().
| void BioImager.BioImage.Update | ( | ) |
Update() is a function that calls the Update() function of the parent class
Definition at line 7243 of file Bio.cs.
References BioImager.BioImage.Update().
Referenced by BioImager.BioImage.Update().
|
static |
| void BioImager.BioImage.UpdateBuffersPyramidal | ( | ) |
Updates the Buffers based on current pyramidal origin and resolution.
Definition at line 2624 of file Bio.cs.
References BioImager.BioImage.AutoThreshold(), BioImager.ImageView.GetCoordinate(), and BioImager.BioImage.StackThreshold().
Referenced by BioImager.ImageView.UpdateImages().
| void BioImager.BioImage.UpdateCoords | ( | ) |
It takes a list of images and assigns them to a 3D array of coordinates.
Definition at line 3143 of file Bio.cs.
Referenced by BioImager.BioImage.FilesToStack(), BioImager.BioImage.FolderToStack(), BioImager.BioImage.ImagesToStack(), BioImager.BioImage.MergeT(), BioImager.BioImage.MergeZ(), BioImager.BioImage.OpenFile(), BioImager.BioImage.OpenOME(), BioImager.BioImage.To16Bit(), BioImager.BioImage.To24Bit(), BioImager.BioImage.To48Bit(), and BioImager.BioImage.To8Bit().
| void BioImager.BioImage.UpdateCoords | ( | int | sz, |
| int | sc, | ||
| int | st | ||
| ) |
It takes the number of Z, C, and T planes in the image and then assigns each image buffer a coordinate in the ZCT space
| sz | size of the Z dimension |
| sc | number of channels |
| st | number of time points |
Definition at line 3178 of file Bio.cs.
| void BioImager.BioImage.UpdateCoords | ( | int | sz, |
| int | sc, | ||
| int | st, | ||
| string | order | ||
| ) |
It takes a list of images and assigns them to a 3D array of coordinates
| sz | size of the Z dimension |
| sc | number of channels |
| st | number of time points |
| order | XYCZT or XYZCT |
Definition at line 3216 of file Bio.cs.
|
static |
The function checks if a given file is supported by the Vips library and returns true if it is, false otherwise.
| file | The "file" parameter is a string that represents the file path of the TIFF image that you want to load using the NetVips library. |
Definition at line 7301 of file Bio.cs.
Referenced by BioImager.BioImage.OpenFile().
| List<AForge.Bitmap> BioImager.BioImage.Buffers = new List<AForge.Bitmap>() |
| List<Channel> BioImager.BioImage.Channels = new List<Channel>() |
|
static |
|
static |
|
static |
| List<Resolution> BioImager.BioImage.Resolutions = new List<Resolution>() |
| SlideImage BioImager.BioImage.slideImage |
|
static |
| List<NetVips.Image> BioImager.BioImage.vipPages = new List<NetVips.Image>() |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
get |
|
getset |
|
get |
|
staticget |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
getset |
Definition at line 2536 of file Bio.cs.
|
getset |
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |