Project

General

Profile

Actions

Feature #3735

open

create image mask that finds the edge of known sized hole and then mask outside of the hole at high magnification images

Added by Anchi Cheng about 9 years ago. Updated about 9 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Carl Negro
Category:
-
Start date:
11/04/2015
Due date:
% Done:

0%

Estimated time:

Description

None of the existing automasking uses the size of the hole. With known size, the curvature is defined. This should be very doable.

We can find edge easy enough with edge finding and a few dilation and merging. But need a simple algorithm to decide which side is inside.

Test session: 15jul20g
Image preset: non-hidden en-b
Control manual mask run: manualmask2 (/gpfs/appion/acheng/15jul20g/mask/manualrun2/masks)

Actions #1

Updated by Anchi Cheng about 9 years ago

code for creating a disk or ring in

/your_myami/apppion/appionlib/apCrud.py function makeDisk(radius)

change

minradsq=0

to
minradsq=radius*radius*0.9*0.9

gives you a ring from 90% or the radius to the radius.

The output is a numpy array.

Actions

Also available in: Atom PDF