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.analysis.boundary_detect
        • navigate.model.analysis.camera
        • navigate.model.analysis.image_contrast
      • navigate.model.concurrency
      • navigate.model.data_sources
      • navigate.model.device_startup_functions
      • navigate.model.devices
      • navigate.model.features
      • navigate.model.metadata_sources
      • navigate.model.microscope
      • navigate.model.model
      • navigate.model.plugins_model
      • navigate.model.waveforms
    • navigate.tools
    • navigate.view
navigate
  • Software API
  • navigate.model
  • navigate.model.analysis
  • navigate.model.analysis.boundary_detect
  • navigate.model.analysis.boundary_detect.binary_detect
  • View page source

navigate.model.analysis.boundary_detect.binary_detect

navigate.model.analysis.boundary_detect.binary_detect(img_data: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], boundary: list, width: int = 1, offset: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]] = None, variance: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]] = None)

Perform a binary search for tissue on an image. Return locations of pixels containing tissue.

Parameters:
  • img_data (npt.ArrayLike) – Image

  • boundary (dict) – List of xy pixel positions indicating presence of tissue as values.

  • width (int) – Width of subimage. Must be smaller than min(image_data.shape[:1])

  • offset (npt.ArrayLike) – Camera pixel offset map. Same size as image_data.

  • variance (npt.ArrayLike) – Camera pixel variance map. Same size as image_data.

Returns:

boundary – List of boundaries of tissue by row of downsampled image.

Return type:

list

Previous Next

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