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.
Loading...
Searching...
No Matches
BioImager.CellImager Class Reference
Inheritance diagram for BioImager.CellImager:

Public Member Functions

void Image (Blob[] blobs)
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Detailed Description

Definition at line 18 of file CellImager.cs.

Constructor & Destructor Documentation

◆ CellImager()

BioImager.CellImager.CellImager ( )

Definition at line 25 of file CellImager.cs.

26 {
27 InitializeComponent();
28 viewer = new ImageView();
29 viewer.ShowControls = false;
30 imageSplitContainer.Panel2.Controls.Add(viewer);
31 foreach (var item in Microscope.Objectives.List)
32 {
33 objectivesBox.Items.Add(item.Name);
34 }
35 objectivesBox.SelectedIndex = Microscope.Objectives.Index;
36 maxWidthLabel.Text = "Max Width:" + maxWidthBar.Value;
37 maxHeightLabel.Text = "Max Height:" + maxHeightBar.Value;
38 minHeightLabel.Text = "Min Height:" + minHeightBar.Value;
39 minWidthLabel.Text = "Min Width:" + minWidthBar.Value;
40 foreach (Scripting.Script item in Scripting.Scripts.Values)
41 {
42 comboBox.Items.Add(item);
43 }
44 }
ImageView control for image stacks, pyramidal and whole-slide-images.
Definition: ImageView.cs:19

Member Function Documentation

◆ Dispose()

override void BioImager.CellImager.Dispose ( bool  disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 14 of file CellImager.Designer.cs.

15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }

◆ Image()

void BioImager.CellImager.Image ( Blob[]  blobs)

Definition at line 132 of file CellImager.cs.

133 {
134 Point3D p = Microscope.GetPosition();
135 int o = Microscope.Objectives.Index;
136 foreach (Blob blob in blobs)
137 {
138 if (blob.Rectangle.Width < minWidthBar.Value || blob.Rectangle.Height < minHeightBar.Value || blob.Rectangle.Width > maxWidthBar.Value || blob.Rectangle.Height > maxHeightBar.Value)
139 continue;
140 PointD loc = new PointD(b.StageSizeX + (blob.Rectangle.X * b.PhysicalSizeX), b.StageSizeY + (blob.Rectangle.Y * b.PhysicalSizeY));
141 Microscope.Objectives.SetPosition(objectivesBox.SelectedIndex);
142 Microscope.SetPosition(loc);
143 if (tileBox.Checked)
144 {
145 for (int y = 0; y < tileYBox.Value; y++)
146 {
147 for (int x = 0; x < tileXBox.Value; x++)
148 {
149 if (comboBox.SelectedIndex != -1)
150 ((Scripting.Script)comboBox.SelectedItem).Run();
151 else
152 images.AddRange(Microscope.TakeTiles((int)tileXBox.Value, (int)tileYBox.Value));
153 }
154 }
155 }
156 else
157 {
158 if (comboBox.SelectedIndex != -1)
159 ((Scripting.Script)comboBox.SelectedItem).Run();
160 else
161 images.Add(Microscope.TakeImage(false, false, false));
162 }
163 }
164 Microscope.Objectives.SetPosition(o);
165 Microscope.SetPosition(p);
166 viewer.Images.Clear();
167 viewer.Images.AddRange(images);
168 viewer.UpdateView();
169 }

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