Skip to content
Permalink
Browse files

Update dataAnalysis.py

  • Loading branch information...
otills committed Oct 12, 2018
1 parent dbb5c14 commit 1e7131918f9b1807b124b2eca5ae22ad1b7be945
Showing with 15 additions and 0 deletions.
  1. +15 −0 program/dataAnalysis.py
@@ -716,3 +716,18 @@ def identifyLethalEndPoints(self, savePath, developmentalStage):



#==============================================================================
# Plot a multipanel of blockwise data, of specific timepoint and resolution.
#==============================================================================
def plotEmbryoOutlineXR(self, timePoint):
#t = 20
#b = 3
em = self.results['EmbryoOutline'].loc[timePoint,:].values.astype(np.int)
#em = self.results['EmbryoOutline'].loc[timePoint,:,'embryoOutline']
outtmp = np.zeros((len(em),1000,1000))
for g in range(outtmp.shape[0]):
#out = cv2.ellipse(np.zeros_like(twentyFPS.tmp[g]),formattedRotBBox,(255,255,255),-1)
cv2.drawContours(image = outtmp[g], contours = [np.array(em[g].T)[np.array(em[g].T)[:,0] !=0,:]], contourIdx = -1, color = (255, 255,255), thickness = 2)
#twentyFPS.seq[g] = cv2.bitwise_and(twentyFPS.seq[g], out)
pg.image(outtmp)

0 comments on commit 1e71319

Please sign in to comment.
You can’t perform that action at this time.