Skip to content

Memory Management and Clustering in Mosaic Construction #10

@gustavo-alberto

Description

@gustavo-alberto

I am working on constructing a mosaic from photographs taken of a microscope slide. The total number of images is approximately 10,000, some of which are completely white, indicating areas with no tissue.

Running the script with either of the two options (Mosaic and StructuredMosaic) results in a memory management issue, causing the memory usage to reach 100% and freezing the computer.

I am looking for a way to work with the script using clusters to manage memory and recursively assemble the clusters until the entire mosaic is constructed. Additionally, I need to incorporate the white images (which do not have matching points) into the clusters based on their known positions.

Here is the detailed scenario:

  1. Image Acquisition: The complete set of images is captured by the hardware before running the script. Each image's position in the mosaic is identified in the file name, allowing the entire set to be mapped.
  2. Memory Management: Efficient memory and processing management is critical due to the large number of images.
  3. Clustering: Using a recursive approach to handle clusters would help manage memory and processing load.
  4. Incorporating White Images: The white images should be placed in the clusters and the final mosaic based on their known x and y coordinates in the grid.

Requirements

  • Mosaic Construction: Handle a large number of images (at least 10,000, potentially up to 500,000).
  • Efficient Memory Management: Ensure the script can run without exhausting system memory.
  • Recursive Clustering: Implement clustering in a recursive manner to assist with memory and processing load.
  • White Image Handling: Integrate white images into the clusters and mosaic based on their mapped positions.

Example

The script should be able to:

  1. Load a subset of images into memory, process them, and assemble them into clusters.
  2. Recursively combine clusters to form larger clusters until the full mosaic is assembled.
  3. Insert white images into their correct positions based on their coordinates without requiring matching points.

Is there a way to achieve this functionality with the current script or through modifications?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions