class_docstr: Some tests for local_minima are included as well.
class_docstr_tok: ["Some","tests","for","local_minima","are","included","as","well","."]
docstr: Test output if indices of peaks are desired.
docstr_tok: ["Test","output","if","indices","of","peaks","are","desired","."]
code: def test_indices(self):
      """Test output if indices of peaks are desired."""
      # Connectivity 1
      expected_conn1 = np.nonzero(self.expected_cross)
      result_conn1 = extrema.local_maxima(
          self.image, connectivity=1, indices=True
      )
      assert_equal(result_conn1, expected_conn1)
  
      # Connectivity 2
      expected_conn2 = np.nonzero(self.expected_default)
      result_conn2 = extrema.local_maxima(
          self.image, connectivity=2, indices=True
      )
      assert_equal(result_conn2, expected_conn2)
  
imports: import math
  import unittest
  import numpy
  from numpy.testing import assert_equal
  from pytest import raises, warns
  from skimage._shared.testing import expected_warnings
  from skimage.morphology import extrema
label_desc: Use image node_id 6 for calling the TestLocalMaxima obj's underlying member method code with example usage: obj.test_indices() without return types