Skip to content

Is it possible to copy existing rigid registration? #29

Description

@mfizyczka

I would like to use rigid OnlineMatch as a starting point for deformable registration. But I don't want to change OnlineMatch registration itself which would be done if I load it and then run deformable registration. How can I copy this registration?

My current code:

  # select online match registration:
  for r in primaryVolume.getLinkedRegistrations(): 
    if r.getTargetVolume().getVelocityId() == cbctId and 'ONLINEMATCH' in r.getName():
      #  registrationId = r.getVelocityId()
      cbctRegistration = engine.loadRegistration(r.getVelocityId())
      print('\t\tLoading pCT-CBCT ONLINEMATCH.', engine.getErrorMessage())

  # perform deformable registration:
  deformableRegistrationSettings = velocity.DefaultBSplineDeformableRegistrationSettings()
  # PreprocessingFilterMethod: CBCTCorrectionSecondary = 4
  deformableRegistrationSettings.preprocessingMethod = 4
  # Deformable registration Type:
  deformableRegistrationSettings.type = velocity.DeformableMultiPass
  regOps.performBsplineRegistrationDICOM(deformableRegistrationSettings)
  regOps.saveRegistration()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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