navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.log_files
    • navigate.model
      • navigate.model.analysis
      • navigate.model.concurrency
      • navigate.model.data_sources
      • navigate.model.device_startup_functions
      • navigate.model.devices
      • navigate.model.features
        • navigate.model.features.adaptive_optics
        • navigate.model.features.auto_tile_scan
        • navigate.model.features.autofocus
        • navigate.model.features.common_features
        • navigate.model.features.feature_container
        • navigate.model.features.feature_related_functions
        • navigate.model.features.image_writer
        • navigate.model.features.remove_empty_tiles
        • navigate.model.features.restful_features
        • navigate.model.features.update_setting
        • navigate.model.features.volume_search
      • navigate.model.metadata_sources
      • navigate.model.microscope
      • navigate.model.model
      • navigate.model.plugins_model
      • navigate.model.waveforms
    • navigate.tools
    • navigate.view
navigate
  • Acquiring Data
  • Currently Implemented Features
  • navigate.model.features.remove_empty_tiles
  • navigate.model.features.remove_empty_tiles.DetectTissueInStack
  • View page source

navigate.model.features.remove_empty_tiles.DetectTissueInStack

class navigate.model.features.remove_empty_tiles.DetectTissueInStack(model, planes=1, percentage=0.75, detect_func=None)

Bases: object

Detect Tissue in a Stack of Images.

This class is used to detect tissue in a stack of images by moving the microscope stage through different Z and F positions and analyzing each frame for tissue presence.

__init__(model, planes=1, percentage=0.75, detect_func=None)

Initialize the DetectTissueInStack class.

Parameters:

modelobject

The model object representing the microscope.

planesint, optional

The number of Z planes to capture in the stack. Default is 1.

percentagefloat, optional

The minimum percentage of tissue required to consider a frame as having tissue. Default is 0.75 (75%).

detect_funcfunction, optional

The custom tissue detection function to use. If not specified, the default detect_tissue function will be used.

Methods

__init__(model[, planes, percentage, ...])

Initialize the DetectTissueInStack class.

end_func_data()

Data processing function to end the data phase.

end_func_signal()

Signal processing function to end the signal phase.

in_func_data(frame_ids)

Data processing function to analyze image frames for tissue presence.

in_func_signal()

Signal processing function to move the microscope stage.

pre_func_data()

Initialization function for data processing.

pre_func_signal()

Initialization function for signal processing.

Attributes

model

The model object representing the microscope.

planes

The number of Z planes to capture in the stack.

detect_func

The tissue detection function used to analyze image frames.

end_func_data()

Data processing function to end the data phase.

This method is called to determine whether the data phase should end. It checks

if the specified number of frames have been received.

Returns:

bool

True if the data phase should end, False otherwise.

end_func_signal()

Signal processing function to end the signal phase.

This method is called to determine whether the signal phase should end. It checks if the specified number of Z planes have been scanned.

Returns:

bool

True if the signal phase should end, False otherwise.

in_func_data(frame_ids)

Data processing function to analyze image frames for tissue presence.

This method is called during the data processing phase to analyze image frames for tissue presence. It checks if any of the received frames contain sufficient tissue.

Parameters:

frame_idslist

A list of frame IDs to analyze.

Returns:

bool

True if tissue is detected, False otherwise.

in_func_signal()

Signal processing function to move the microscope stage.

This method is called during the signal processing phase to move the microscope

stage to the specified Z and F positions. It increments the Z and F positions for each scan.

pre_func_data()

Initialization function for data processing.

This method is called at the beginning of the data processing phase and initializes variables for tracking received frames and tissue detection.

Returns:

None

pre_func_signal()

Initialization function for signal processing.

This method is called at the beginning of the signal processing phase and initializes the necessary parameters for moving the microscope stage.

detect_func

The tissue detection function used to analyze image frames.

Type:

function

model

The model object representing the microscope.

Type:

navigate.model.Model

planes

The number of Z planes to capture in the stack.

Type:

int

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.