Project

General

Profile

Actions

Feature #12257

closed

Add roundness critereon to blob finder

Added by William Rice about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/18/2022
Due date:
% Done:

0%

Estimated time:
Deliverable:

Description

Added roundness measurement to blobs

  • Since we are trying to match a round template with round holes, the correlation shape should be round
  • might be useful to add a measurement of how round the blobs are
  • Leginon code had a "moment of inertia" measurement, but this was not really implemented and looks abandoned
  • one measure of how round the object is uses area and perimeter:
      roundness = 4 pi * area / perimeter**2
      for a circle, area = pi r**2
      perimeter = 2 pi r, so perimeter**2 = 4 pi**2 r**2
      and so perimeter**2 = 4 pi * area
    
  • needed to modify the following files
    pyami/imagefun.py
    leginon/jahcfinder.py
    leginon/jahcfinderback.py
    leginon/jahcfindermodel.py
    leginon/targetfinder.py
    leginon/gui/wx/JAHCFinder.py
    leginon/leginondata.py
    
  • perfect circle: 1.0
  • square: 0.785
  • line: approaches pi/len for large length: (pi * l)/(l**2 + 2l +1)
  • a good starting point is 0.8
  • set to 0.3 or less to include virtually everything
  • implemented since October on Leginon at NYU
Actions #1

Updated by William Rice about 2 years ago

  • Description updated (diff)
Actions #2

Updated by William Rice about 2 years ago

  • Tracker changed from Bug to Feature
  • Affected Version deleted (Appion/Leginon 3.5)
  • Show in known bugs deleted (No)
Actions #3

Updated by Anchi Cheng over 1 year ago

  • Status changed from New to Closed

works.

Actions

Also available in: Atom PDF