def iterwindows(self, count=<NUM_LIT:64>, window_shape=(<NUM_LIT>, <NUM_LIT>)):
if count is None:<EOL><INDENT>while True:<EOL><INDENT>yield self.randwindow(window_shape)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for i in xrange(count):<EOL><INDENT>yield self.randwindow(window_shape)<EOL><DEDENT><DEDENT>
Iterate over random windows of an image

        Args:
            count (int): the number of the windows to generate. Defaults to 64, if `None` will continue to iterate over random windows until stopped.
            window_shape (tuple): The desired shape of each image as (height, width) in pixels.

        Yields:
            image: an image of the given shape and same type.