public function bandrank($other, array $options = []): Image
    {
        /* bandrank will appear as a static class member, as
         * Image::bandrank([a, b, c]), but it's better as an instance
         * method.
         *
         * We need to define this by hand.
         */

        /* Allow a single unarrayed value as well.
         */
        if ($other instanceof Image) {
            $other = [$other];
        } else {
            $other = (array) $other;
        }

        return self::call('bandrank', $this, $other, $options);
    }
public function bandrank($other, array $options = []): Image
    {
        /* bandrank will appear as a static class member, as
         * Image::bandrank([a, b, c]), but it's better as an instance
         * method.
         *
         * We need to define this by hand.
         */

        /* Allow a single unarrayed value as well.
         */
        if ($other instanceof Image) {
            $other = [$other];
        } else {
            $other = (array) $other;
        }

        return self::call('bandrank', $this, $other, $options);
    }
public function bandrank ( $ other , array $ options = [ ] ) : Image { /* bandrank will appear as a static class member, as
         * Image::bandrank([a, b, c]), but it's better as an instance
         * method.
         *
         * We need to define this by hand.
         */ /* Allow a single unarrayed value as well.
         */ if ( $ other instanceof Image ) { $ other = [ $ other ] ; } else { $ other = ( array ) $ other ; } return self :: call ( 'bandrank' , $ this , $ other , $ options ) ; }
For each band element, sort the array of input images and pick the
median. Use the index option to pick something else.

@param mixed $other   The right-hand side of the operator.
@param array $options An array of options to pass to the operation.

@throws Exception

@return Image A new image.
For each band element sort the array of input images and pick the median . Use the index option to pick something else .