def remove_small_holes(ar, min_size=64, connectivity=1, in_place=False):
 _check_dtype_supported(ar)
 if (ar.dtype != bool):
  warn('Any labeled images will be returned as a boolean array. Did you mean to use a boolean array?', UserWarning)
 if in_place:
  out = ar
 else:
  out = ar.copy()
 if in_place:
  out = np.logical_not(out, out)
 else:
  out = np.logical_not(out)
 out = remove_small_objects(out, min_size, connectivity, in_place)
 if in_place:
  out = np.logical_not(out, out)
 else:
  out = np.logical_not(out)
 return out

def remove_small_holes ( ar , min_size = 64 , connectivity = 1 , in_place = False ) : _check_dtype_supported ( ar ) if ( ar . dtype != bool ) : warn ( 'Any labeled images will be returned as a boolean array. Did you mean to use a boolean array?' , UserWarning ) if in_place : out = ar else : out = ar . copy ( ) if in_place : out = np . logical_not ( out , out ) else : out = np . logical_not ( out ) out = remove_small_objects ( out , min_size , connectivity , in_place ) if in_place : out = np . logical_not ( out , out ) else : out = np . logical_not ( out ) return out
remove continguous holes smaller than the specified size .