I apply thresholds (with subtraction) to 2 separate images and divide the resulting images. Due to the different threshold outlines, the ratio image contains both NaNs and Infs (for background and cell edges mostly). I want to measure the mean intensity of all my objects excluding these invalid pixels. But whenever one pixel within the object area is not a real number, I do not get the mean value as output but NaN or Inf instead.
Is there a way to change the behavior of MeasureObjectIntensity (or any other way to perform this calculation)?
Thanks a lot,
P.S.: The application is ratiometric analysis or Fura2.
P.P.S.: I do not really want to shrink the objects.