Skip to content

run levelset script without display #463

@jiehyunjkim

Description

@jiehyunjkim

I read the image using vmtkImageReader() and did the following code:

vmtklevelset = vmtkscripts.vmtkLevelSetSegmentation()
vmtklevelset.Image = imageReader.Image
vmtklevelset.LevelSetsInput = imageReader_ca.Image
vmtklevelset.IsoSurfaceValue = 570
vmtklevelset.UpperThreshold = 2510.0
vmtklevelset.LowerThreshold = 550.0
vmtklevelset.Execute()

However, I already set the value for the isosurface and threshold; I still see the display and need to do that again.
I want to get results not using display but the number I already give. Can I execute and get results without using a display?

I have two other problem.

  1. If I add vmtklevelset.NumberOfIterations = 2000 , I see no output when i run vmtklevelset.Execute().
  2. If I add vmtklevelset.LevelSetsType = 'threshold', it keeps asking me(infinite loop) to put a lower threshold.

Anyone know what to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions