Marthee commited on
Commit
44ba218
·
verified ·
1 Parent(s): 3ee8c39

Update pilecaps_adr.py

Browse files
Files changed (1) hide show
  1. pilecaps_adr.py +1 -1
pilecaps_adr.py CHANGED
@@ -755,7 +755,7 @@ def FillDictionary(SimilarAreaDictionary,img,ratioarea,ratioperim,contourssP,con
755
  if color != [0,0,0]: #colored images
756
  mydata=[[],[rgbcolor[0],rgbcolor[1],rgbcolor[2] ],round(item1,1),width1,height1,1, 0,0,0,0,0,0,'',0,0,0,'']
757
  else:
758
- mydata=[[],' ', round(item1,1),width1,height1,1, 0,0,0,0,0,0,'',0,0,0]
759
  myindex= SimilarAreaDictionary.index[((SimilarAreaDictionary['Rounded'] >=areaPerimeterMin) &(SimilarAreaDictionary['Rounded']<=areaPerimeterMax) )].tolist()
760
  if color!= [0,0,0]: #leveled image
761
  checkifColorExists=0 # to check whether this row was found or not( area and color )
 
755
  if color != [0,0,0]: #colored images
756
  mydata=[[],[rgbcolor[0],rgbcolor[1],rgbcolor[2] ],round(item1,1),width1,height1,1, 0,0,0,0,0,0,'',0,0,0,'']
757
  else:
758
+ mydata=[[],' ', round(item1,1),width1,height1,1, 0,0,0,0,0,0,'',0,0,0,'']
759
  myindex= SimilarAreaDictionary.index[((SimilarAreaDictionary['Rounded'] >=areaPerimeterMin) &(SimilarAreaDictionary['Rounded']<=areaPerimeterMax) )].tolist()
760
  if color!= [0,0,0]: #leveled image
761
  checkifColorExists=0 # to check whether this row was found or not( area and color )