Displays thumbnails of a list of input images as a single 'montage'
image. Supports scrolling if there are more images than
"viewports" in the layout.
|
__init__(self,
image_list,
layout=( 2, 4) ,
tile_size=( 64, 48) ,
gutter=2,
by_row=True,
labels=' index ' ,
keep_aspect=True,
highlight_selected=False)
Constructor |
source code
|
|
|
draw(self,
mousePos=None)
Computes the image montage from the source images based on the
current image pointer (position in list of images), etc. |
source code
|
|
|
asImage(self)
If you don't want to use the montage's built-in mouse-click handling
by calling the ImageMontage.show() method, then this method will
return the montage image computed from the last call to draw(). |
source code
|
|
|
show(self,
window=' Image Montage ' ,
pos=None,
delay=0)
Will display the montage image, as well as register the mouse
handling callback function so that the user can scroll the montage by
clicking the increment/decrement arrows. |
source code
|
|
|
|
|
setHighlighted(self,
idxs)
If the montage was created with highlight_selected option enabled,
then this function will cause a set of tiles in the montage to be
highlighted. |
source code
|
|
|
getHighlighted(self)
Returns the index list of the tiles which were selected/highlighted
by the users |
source code
|
|
|
|
|
_initDecrementArrow(self)
internal method to compute the list of points that represents the
appropriate decrement arrow (leftwards or upwards) depending on the
image montage layout. |
source code
|
|
|
_initIncrementArrow(self)
internal method to compute the list of points that represents the
appropriate increment arrow (rightwards or downwards) depending on
the image montage layout. |
source code
|
|
|
_decr(self)
internal method used by _onClick to compute the new imgPtr location
after a decrement |
source code
|
|
|
_incr(self)
internal method used by _onClick to compute the new imgPtr location
after an increment |
source code
|
|
|
_composite(self,
img,
pos,
imgNum)
Internal method to composite the thumbnail of a given image into the
correct position, given by (row,col). |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|