Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 1803e6e5 authored by Olga Stamati's avatar Olga Stamati
Browse files

fix maskette1 in getImaggetesLabelled()

parent 0ad324f7
Pipeline #65520 passed with stages
in 13 minutes and 41 seconds
......@@ -681,7 +681,6 @@ def getImagettesLabelled(lab1, label, Phi, im1, im2, searchRange, boundingBoxes,
imagette1 = None
imagette1mask = None
imagette2 = None
imagette2mask = None
intDisplacement = numpy.round(Phi[0:3, 3]).astype(int)
PhiNoDisp = Phi.copy()
......@@ -713,13 +712,13 @@ def getImagettesLabelled(lab1, label, Phi, im1, im2, searchRange, boundingBoxes,
if applyF == "all" or applyF == "rigid":
imagette1 = spam.DIC.applyPhi(imagette1, PhiNoDisp, PhiPoint=gottenLabel['centreOfMassREL'])
maskette1 = spam.DIC.applyPhi(gottenLabel['subvol'], PhiNoDisp, PhiPoint=gottenLabel['centreOfMassREL'], interpolationOrder=0)
imagette1mask = spam.DIC.applyPhi(gottenLabel['subvol'], PhiNoDisp, PhiPoint=gottenLabel['centreOfMassREL'], interpolationOrder=0)
elif applyF == "no":
maskette1 = gottenLabel['subvol']
imagette1mask = gottenLabel['subvol']
else:
print("spam.label.getImagettesLabelled(): unknown option for applyF options are: ['all', 'rigid', 'no']")
maskette1vol = numpy.sum(maskette1)
maskette1vol = numpy.sum(imagette1mask)
if maskette1vol > volumeThreshold:
# 2020-09-25 OS and EA: Prepare startStop array for imagette 2 to be extracted with new
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment