docstr: Test coocurrence with an object smaller than the scal near the edge.
  
  There's a corner case here where the co-occurrence is being done
  on pixels "scale" to the right of objects and all objects are
  within "scale" of the right edge. That means that all objects get
  compared to nothing and the histogram code blows up.
docstr_tok: ["Test","coocurrence","with","an","object","smaller","than","the","scal","near","the","edge",".","There","'s","a","corner","case","here","where","the","co-occurrence","is","being","done","on","pixels","``","scale","''","to","the","right","of","objects","and","all","objects","are","within","``","scale","''","of","the","right","edge",".","That","means","that","all","objects","get","compared","to","nothing","and","the","histogram","code","blows","up","."]
code: def test_01_01_regression_edge(self):
      """Test coocurrence with an object smaller than the scal near the edge.
  
      There's a corner case here where the co-occurrence is being done
      on pixels "scale" to the right of objects and all objects are
      within "scale" of the right edge. That means that all objects get
      compared to nothing and the histogram code blows up.
      """
      labels = np.zeros((100, 100), int)
      labels[90:99, 90:99] = 1
      np.random.seed(0)
      image = (np.random.uniform(size=(100, 100)) * 8).astype(int)
      c, nlevels = haralick.cooccurrence(image, labels, 0, 30)
      self.assertTrue(np.all(c == 0))
  
imports: import unittest
  import centrosome.haralick
  import numpy
label_desc: Use image node_id 19 for calling the TestHaralick obj's underlying member method code with example usage: obj.test_01_01_regression_edge() without return types