BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioCore.SlideSourceBase Class Referenceabstract
Inheritance diagram for BioCore.SlideSourceBase:
BioCore.ISlideSource BioCore.ISliceProvider BioCore.ISlideExternInfo BioCore.SlideBase

Public Member Functions

async Task< byte[]> GetSlice (SliceInfo sliceInfo)
 Get slice. More...
 
byte[] GetRgb24Bytes (Image< Rgb24 > image)
 
abstract IReadOnlyDictionary< string, byte[]> GetExternImages ()
 Extern image. More...
 
void Dispose ()
 
async Task< byte[]> GetTileAsync (TileInformation tileInfo)
 
async Task< byte[]> GetTileAsync (BruTile.TileInfo tileInfo)
 
Task< byte[]> GetSlice (SliceInfo sliceInfo)
 Get slice. More...
 
IReadOnlyDictionary< string, byte[]> GetExternImages ()
 Extern image. More...
 

Static Public Member Functions

static void Resister (string extensionUpper, Func< string, bool, ISlideSource > factory)
 resister decode for Specific format More...
 
static ISlideSource Create (BioImage source, SlideImage im, bool enableCache=true)
 
static byte[] ConvertRgbaToRgb (byte[] rgbaArray)
 

Public Attributes

TileCache cache = null
 

Static Public Attributes

static byte[] LastSlice
 
static Extent destExtent
 
static Extent sourceExtent
 
static double curUnitsPerPixel = 1
 
static bool UseVips = true
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Properties

static bool UseRealResolution = true [get, set]
 
double MinUnitsPerPixel [get, protected set]
 um/pixel More...
 
SlideImage Image [get, set]
 
ITileSchema Schema [get, protected set]
 
string Name [get, protected set]
 
Attribution Attribution [get, protected set]
 
IReadOnlyDictionary< string, object > ExternInfo [get, protected set]
 Extern info. More...
 
string Source [get, protected set]
 File path. More...
 
- Properties inherited from BioCore.ISliceProvider
double MinUnitsPerPixel [get]
 um/pixel More...
 
- Properties inherited from BioCore.ISlideExternInfo
string Source [get]
 File path. More...
 
IReadOnlyDictionary< string, object > ExternInfo [get]
 Extern info. More...
 

Detailed Description

Definition at line 122 of file ISlideSource.cs.

Member Function Documentation

◆ ConvertRgbaToRgb()

static byte[] BioCore.SlideSourceBase.ConvertRgbaToRgb ( byte[]  rgbaArray)
static

Definition at line 318 of file ISlideSource.cs.

◆ Create()

static ISlideSource BioCore.SlideSourceBase.Create ( BioImage  source,
SlideImage  im,
bool  enableCache = true 
)
static

Definition at line 140 of file ISlideSource.cs.

◆ Dispose() [1/2]

void BioCore.SlideSourceBase.Dispose ( )

Definition at line 276 of file ISlideSource.cs.

◆ Dispose() [2/2]

virtual void BioCore.SlideSourceBase.Dispose ( bool  disposing)
protectedvirtual

Definition at line 259 of file ISlideSource.cs.

◆ GetExternImages()

abstract IReadOnlyDictionary< string, byte[]> BioCore.SlideSourceBase.GetExternImages ( )
pure virtual

Extern image.

Returns

Implements BioCore.ISlideExternInfo.

Implemented in BioCore.SlideBase.

◆ GetRgb24Bytes()

byte[] BioCore.SlideSourceBase.GetRgb24Bytes ( Image< Rgb24 >  image)

Definition at line 221 of file ISlideSource.cs.

◆ GetSlice()

async Task< byte[]> BioCore.SlideSourceBase.GetSlice ( SliceInfo  sliceInfo)

Get slice.

Parameters
sliceInfoSlice info
Returns

Implements BioCore.ISliceProvider.

Definition at line 169 of file ISlideSource.cs.

◆ GetTileAsync() [1/2]

async Task< byte[]> BioCore.SlideSourceBase.GetTileAsync ( BruTile.TileInfo  tileInfo)

Definition at line 300 of file ISlideSource.cs.

◆ GetTileAsync() [2/2]

async Task< byte[]> BioCore.SlideSourceBase.GetTileAsync ( TileInformation  tileInfo)

Definition at line 282 of file ISlideSource.cs.

◆ Resister()

static void BioCore.SlideSourceBase.Resister ( string  extensionUpper,
Func< string, bool, ISlideSource factory 
)
static

resister decode for Specific format

Parameters
extensionUpperdot and extension upper
factoryfile path,enable cache,decoder

Definition at line 134 of file ISlideSource.cs.

Member Data Documentation

◆ cache

TileCache BioCore.SlideSourceBase.cache = null

Definition at line 168 of file ISlideSource.cs.

◆ curUnitsPerPixel

double BioCore.SlideSourceBase.curUnitsPerPixel = 1
static

Definition at line 166 of file ISlideSource.cs.

◆ destExtent

Extent BioCore.SlideSourceBase.destExtent
static

Definition at line 164 of file ISlideSource.cs.

◆ LastSlice

byte [] BioCore.SlideSourceBase.LastSlice
static

Definition at line 163 of file ISlideSource.cs.

◆ sourceExtent

Extent BioCore.SlideSourceBase.sourceExtent
static

Definition at line 165 of file ISlideSource.cs.

◆ UseVips

bool BioCore.SlideSourceBase.UseVips = true
static

Definition at line 167 of file ISlideSource.cs.

Property Documentation

◆ Attribution

Attribution BioCore.SlideSourceBase.Attribution
getprotected set

Definition at line 248 of file ISlideSource.cs.

◆ ExternInfo

IReadOnlyDictionary<string, object> BioCore.SlideSourceBase.ExternInfo
getprotected set

Extern info.

Implements BioCore.ISlideExternInfo.

Definition at line 250 of file ISlideSource.cs.

◆ Image

SlideImage BioCore.SlideSourceBase.Image
getset

Definition at line 242 of file ISlideSource.cs.

◆ MinUnitsPerPixel

double BioCore.SlideSourceBase.MinUnitsPerPixel
getprotected set

um/pixel

Implements BioCore.ISliceProvider.

Definition at line 162 of file ISlideSource.cs.

◆ Name

string BioCore.SlideSourceBase.Name
getprotected set

Definition at line 246 of file ISlideSource.cs.

◆ Schema

ITileSchema BioCore.SlideSourceBase.Schema
getprotected set

Definition at line 244 of file ISlideSource.cs.

◆ Source

string BioCore.SlideSourceBase.Source
getprotected set

File path.

Implements BioCore.ISlideExternInfo.

Definition at line 252 of file ISlideSource.cs.

◆ UseRealResolution

bool BioCore.SlideSourceBase.UseRealResolution = true
staticgetset

Definition at line 125 of file ISlideSource.cs.


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