Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zulko/pompei
/ functions
Functions
33 in github.com/Zulko/pompei
⨍
Functions
33
◇
Types & classes
1
↓ 6 callers
Function
verbose_print
(s)
pompei/pompei.py:24
↓ 4 callers
Method
_best_match_index
Finds the movie frame that matches best the given signature. Will try all movie frames except the ones designated as forbidden (which
pompei/pompei.py:263
↓ 3 callers
Function
_do_download
(version, download_base, to_dir, download_delay)
ez_setup.py:96
↓ 3 callers
Method
_score
Returns the squared distance (matching error) between a frame and a signature.
pompei/pompei.py:254
↓ 3 callers
Function
map_array
applies a function to each element of a 2D-ish array. So this array: [ [ [A11] [A12] ] [ [A21] [A22] ] ] becomes this: [
pompei/pompei.py:72
↓ 3 callers
Function
vtqdm
applies tqdm (progress bar) to the list to iterate, only if VERBOSE=True.
pompei/pompei.py:29
↓ 2 callers
Function
_extractall
Extract all members from the archive to the current working directory and set owner, modification time and permissions on directories afterwards. `pat
ez_setup.py:177
↓ 2 callers
Function
_python_cmd
(*args)
ez_setup.py:35
↓ 2 callers
Function
colors_signature
Returns the signature of the image. [ [ RGB1, RGB2, RGB3] [ RGB4, RGB5, RGB6] ] and returns [R1 G1 B1 R2 G2 B2 R3 G3 B3... R6 G6 B6]
pompei/pompei.py:94
↓ 2 callers
Function
download_setuptools
Download setuptools from a specified location and return its filename `version` should be a valid setuptools version number that is available as an e
ez_setup.py:140
↓ 2 callers
Function
split_array
Splits a 2D-ish array into a mosaic of smaller arrays. In short, this array: [ [ A ] ] is splitted like this [ [ [A11] [A12] ]
pompei/pompei.py:36
↓ 1 callers
Function
_build_egg
(egg, tarball, to_dir)
ez_setup.py:67
↓ 1 callers
Function
_build_install_args
Build the arguments to 'python setup.py install' on the setuptools package
ez_setup.py:224
↓ 1 callers
Method
_eliminate_similar_neighbors
Replaces some frames to avoid that frames too close in the movie end up too close in the mosaic.
pompei/pompei.py:355
↓ 1 callers
Method
_find_best_matches
See method .make_mosaic
pompei/pompei.py:396
↓ 1 callers
Function
_install
(tarball, install_args=())
ez_setup.py:39
↓ 1 callers
Method
_minimize_occurences
Diversifies the mosaic by replacing the overused frames by different (and non optimal) frames. Parameters ==========
pompei/pompei.py:280
↓ 1 callers
Function
_parse_args
Parse the command line for options
ez_setup.py:236
↓ 1 callers
Method
extract
(self, index, filename=None)
pompei/pompei.py:139
↓ 1 callers
Function
main
Install or upgrade setuptools and EasyInstall
ez_setup.py:252
↓ 1 callers
Method
score
Returns the sum of the squared distance of each pixel to the nearest color in the movie_kmeans set.
pompei/pompei.py:241
Method
__getitem__
(self, index)
pompei/pompei.py:127
Method
__init__
(self, folder)
pompei/pompei.py:115
Method
__iter__
(self)
pompei/pompei.py:134
Method
__len__
(self)
pompei/pompei.py:131
Method
find_mosaicable_frames
Finds the frames whose colors resemble most the main colors of the movie, and thus would make good candidates for a mosaic. This is
pompei/pompei.py:220
Method
from_movie
Extracts frames from a movie and turns them into thumbnails. Parameters ========== filename Name of the l
pompei/pompei.py:150
Method
make_mosaic
Makes a mosaic file from the best_matches found. Finds the right frames to reconstitute the given image, in three steps:
pompei/pompei.py:439
Function
mean_color
Returns [R,G,B], mean color of the WxHx3 numpy image ``arr``.
pompei/pompei.py:89
Function
set_parameter
(parameter, value)
pompei/pompei.py:21
Function
sorter
(dir1, dir2)
ez_setup.py:202
Function
stack_array
Reconstitutes a splitted array. Kind of the inverse of split-array. In short, this array [ [ [A11] [A12] ] [ [A21] [A22] ] ]
pompei/pompei.py:56
Function
use_setuptools
(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15)
ez_setup.py:108