BioLib 2.7.2.1
See the version list below for details.
dotnet add package BioLib --version 2.7.2.1
NuGet\Install-Package BioLib -Version 2.7.2.1
<PackageReference Include="BioLib" Version="2.7.2.1" />
paket add BioLib --version 2.7.2.1
#r "nuget: BioLib, 2.7.2.1"
// Install BioLib as a Cake Addin #addin nuget:?package=BioLib&version=2.7.2.1 // Install BioLib as a Cake Tool #tool nuget:?package=BioLib&version=2.7.2.1
BioLib
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. Check out the documentation.
Usage
//First call BioImage.Initialize to
//initialize the Bioformats library.
BioImage.Initialize();
//Once initialized you can open OME, ImageJ tiff files, and Bio Tiff files with:
BioImage b = BioImage.OpenFile("file");
//Or if you want to use specifically the OME image reader you can use BioImage.OpenOME
BioImage b = BioImage.OpenOME("file");
//If you are working with a pyramidal image you can open a portion of a tiled image with OpenOME.
//BioImage.OpenOME(string file, int serie, bool tab, bool addToImages, bool tile, int tilex, int tiley, int tileSizeX, int tileSizeY)
//You can specify whether to open in a newtab as well as whether to add the image to
//the Images.images table. As well as specify whether to open as a tile with the specified
//tile X,Y position & tile width & height.
BioImage.OpenOME("file",0,false,false,true,0,0,600,600);
//This will open a portion of the image as a tile and won't add it to the Images table.
//Once you have opened a tiled image with BioImage.OpenOME you can call the
//GetTile(BioImage b, ZCT coord, int serie, int tilex, int tiley, int tileSizeX, int tileSizeY) method
// to quickly get another tile from different portion of the image. For BioGTK & BioLib
Bitmap bm = BioImage.GetTile(b, new ZCT(0,0,0), 0, 100, 100, 600, 600);
//To get the current coordinate of the ImageView you can call GetCoordinate.
ZCT cord = v.GetCoordinate();
//or to set the current coordinate
v.SetCoordinate(new ZCT(1,1,1));
//To create a point as well as any other ROI type you can call the ROI create methods.
ROI p = ROI.CreatePoint(cord, 0, 0);
ROI rect = ROI.CreateRectangle(cord, 0, 0, 100, 100);
//Usage of Graphics class for 16 & 48 bit images as well as regular bit depth images
//is very similar to System.Graphics.
//We create a new Graphics object by passing the Bitmap for BioGTK & BioLib and BufferInfo for BioCore
Graphics g = Graphics.FromImage(b.Buffers[0]);
//Then we create a pen by passing a ColorS which represent a Color with,
//a higher bit depth (unsigned short) rather than a byte.
g.pen = new Pen(new ColorS(ushort.MaxValue, ushort.MaxValue, ushort.MaxValue));
//Then we can call the familiar methods DrawLine, DrawPolygon, FillPolygon etc.
g.DrawLine(0,0,100,100);
//Finally we dispose the Graphics object.
g.Dispose();
//We can also save the resulting image given the ID of the image in the Images table.
//All images opened with BioImage.OpenFile or BioImage.OpenOME are added to the
//Images.images table with the filename as an ID.
BioImage.SaveFile("file","path");
//To convert between different pixel formats we can call for example To24Bit.
b.To24Bit();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- AForgeBio (>= 1.7.1.2)
- BioFormats.NET8 (>= 7.3.1.1)
- BitMiracle.LibTiff.NET (>= 2.4.649)
- CS-Script (>= 4.8.17)
- ManagedCuda (>= 10.0.0)
- NetVips (>= 2.4.1)
- NetVips.Native (>= 8.15.3)
- NetVips.Native.linux-arm64 (>= 8.15.3)
- NetVips.Native.linux-x64 (>= 8.15.3)
- NetVips.Native.osx-arm64 (>= 8.15.3)
- NetVips.Native.osx-x64 (>= 8.15.3)
- NetVips.Native.win-x64 (>= 8.15.3)
- Newtonsoft.Json (>= 13.0.3)
- OpenSlideGTK (>= 1.8.0)
- SixLabors.ImageSharp (>= 3.1.5)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BioLib:
Package | Downloads |
---|---|
BioCore
A .NET library & program for annotating, & editing various microscopy imaging formats using Bioformats supported images. including whole slide, pyramidal & series. |
|
BioGTK
A .NET application & library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. |
|
BioImager
A .NET microscopy imaging application based on Bio 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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
3.3.0 | 98 | 12/17/2024 | |
3.2.0 | 86 | 12/10/2024 | |
3.1.1 | 91 | 12/3/2024 | |
3.1.0 | 78 | 12/2/2024 | |
3.0.0 | 92 | 11/25/2024 | |
2.9.2 | 84 | 11/19/2024 | |
2.9.1.1 | 99 | 11/18/2024 | |
2.9.1 | 88 | 11/17/2024 | |
2.9.0.1 | 95 | 10/29/2024 | |
2.9.0 | 84 | 10/29/2024 | |
2.8.0 | 139 | 10/19/2024 | |
2.7.3.2 | 102 | 10/10/2024 | |
2.7.3.1 | 97 | 10/10/2024 | |
2.7.3 | 118 | 10/10/2024 | |
2.7.2.1 | 104 | 10/1/2024 | |
2.7.2 | 91 | 9/29/2024 | |
2.7.1 | 105 | 9/28/2024 | |
2.7.0.1 | 94 | 9/1/2024 | |
2.7.0 | 102 | 8/29/2024 | |
2.6.0 | 139 | 8/21/2024 | |
2.5.0 | 107 | 7/26/2024 | |
2.4.1 | 122 | 7/7/2024 | |
2.4.0 | 104 | 5/2/2024 | |
2.3.0 | 123 | 4/23/2024 | |
2.2.1 | 152 | 2/17/2024 | |
2.2.0 | 111 | 2/17/2024 | |
2.1.0 | 150 | 2/10/2024 | |
2.0.0 | 120 | 2/2/2024 | |
1.9.0 | 173 | 12/24/2023 | |
1.8.0 | 206 | 11/2/2023 | |
1.7.0 | 445 | 9/1/2023 | |
1.6.2 | 424 | 8/22/2023 | |
1.6.1 | 400 | 8/19/2023 | |
1.6.0 | 446 | 8/6/2023 | |
1.5.2 | 458 | 8/2/2023 | |
1.5.1 | 445 | 7/9/2023 | |
1.5.0 | 427 | 7/8/2023 | |
1.4.1 | 408 | 6/27/2023 | |
1.4.0 | 368 | 5/15/2023 | |
1.3.2 | 454 | 4/12/2023 | |
1.3.1 | 494 | 4/1/2023 | |
1.3.0 | 503 | 3/7/2023 | |
1.2.1 | 555 | 3/4/2023 | |
1.2.0 | 553 | 3/2/2023 | |
1.1.1 | 508 | 3/2/2023 | |
1.1.0 | 500 | 3/1/2023 | |
1.0.0 | 250 | 3/1/2023 |
16 & 48 bit slides fix for CUDA graphics acceleration of stitching.