Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Some cells' a.tot equals their a.tot.p1 #12

@naikymen

Description

@naikymen

Example pics:

image

a.tot: "Area of the cell in pixels"

a.tot.p1: "Area of all the pixels interior to the boundary that is one pixel wider than the cell boundary. Numbers thus include the original cell plus an annular region one pixel around the outside of the cell."

Since the perim variable is not actually the number of pixels in the perimeter, there is no good way of estimating it.

A workaround is to derive it from the pixel boundary masks.

For example, this creates a num.pix.perim column with the actual number of pixels in the boundary:

cdata.perim <- left_join(
  cdata,
  cell.boundaries %>% group_by(pos, cellID, t.frame) %>% 
    summarise(num.pix.perim = n()), 
  by = c("cellID", "t.frame", "pos")
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions