Changeset 442


Ignore:
Timestamp:
Dec 12, 2011 9:54:18 AM (10 years ago)
Author:
vondreele
Message:

fix to mask bug in image integration with background subtraction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r440 r442  
    1111import math
    1212import time
     13import copy
    1314import cPickle
    1415import GSASIIpath
     
    241242       
    242243        if data['background image'][0]:
     244            maskCopy = copy.deepcopy(masks)
    243245            backImg = data['background image'][0]
    244246            backScale = data['background image'][1]
     
    247249            backImage = G2IO.GetImageData(self,imagefile,True)*backScale
    248250            sumImage = self.ImageZ+backImage
    249             print sumImage.shape,np.min(sumImage),np.max(sumImage)
    250             self.Integrate = G2img.ImageIntegrate(sumImage,data,masks)
     251            sumMin = np.min(sumImage)
     252            sumMax = np.max(sumImage)
     253            maskCopy['Thresholds'] = [(sumMin,sumMax),[sumMin,sumMax]]
     254            self.Integrate = G2img.ImageIntegrate(sumImage,data,maskCopy)
    251255        else:
    252256            self.Integrate = G2img.ImageIntegrate(self.ImageZ,data,masks)
Note: See TracChangeset for help on using the changeset viewer.