Skip to content

Gaussian of coordinates close an edge can extend past the image boundary and cause an error. #64

@darianSmalley

Description

@darianSmalley

Function: create_lattice_mask
File: imgen.py
Issue: XY coordinates close an edge can cause an error if their gaussian extends past the boundary.

Potential Solution:
This can be avoided by including cases for the edges to remove the sections of the mask which extend beyond the image boundary and limit the indices to within the image width and height.

Additionally, the previous values of the mask are added to the new mask to allow smoother transitions between overlapping gaussians.

This sort of a solution can be seen in the image below.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions