MCPcopy Create free account

hub / github.com/Zulko/pompei / functions

Functions33 in github.com/Zulko/pompei

↓ 6 callersFunctionverbose_print
(s)
pompei/pompei.py:24
↓ 4 callersMethod_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 callersFunction_do_download
(version, download_base, to_dir, download_delay)
ez_setup.py:96
↓ 3 callersMethod_score
Returns the squared distance (matching error) between a frame and a signature.
pompei/pompei.py:254
↓ 3 callersFunctionmap_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 callersFunctionvtqdm
applies tqdm (progress bar) to the list to iterate, only if VERBOSE=True.
pompei/pompei.py:29
↓ 2 callersFunction_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 callersFunction_python_cmd
(*args)
ez_setup.py:35
↓ 2 callersFunctioncolors_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 callersFunctiondownload_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 callersFunctionsplit_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 callersFunction_build_egg
(egg, tarball, to_dir)
ez_setup.py:67
↓ 1 callersFunction_build_install_args
Build the arguments to 'python setup.py install' on the setuptools package
ez_setup.py:224
↓ 1 callersMethod_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 callersMethod_find_best_matches
See method .make_mosaic
pompei/pompei.py:396
↓ 1 callersFunction_install
(tarball, install_args=())
ez_setup.py:39
↓ 1 callersMethod_minimize_occurences
Diversifies the mosaic by replacing the overused frames by different (and non optimal) frames. Parameters ==========
pompei/pompei.py:280
↓ 1 callersFunction_parse_args
Parse the command line for options
ez_setup.py:236
↓ 1 callersMethodextract
(self, index, filename=None)
pompei/pompei.py:139
↓ 1 callersFunctionmain
Install or upgrade setuptools and EasyInstall
ez_setup.py:252
↓ 1 callersMethodscore
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
Methodfind_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
Methodfrom_movie
Extracts frames from a movie and turns them into thumbnails. Parameters ========== filename Name of the l
pompei/pompei.py:150
Methodmake_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
Functionmean_color
Returns [R,G,B], mean color of the WxHx3 numpy image ``arr``.
pompei/pompei.py:89
Functionset_parameter
(parameter, value)
pompei/pompei.py:21
Functionsorter
(dir1, dir2)
ez_setup.py:202
Functionstack_array
Reconstitutes a splitted array. Kind of the inverse of split-array. In short, this array [ [ [A11] [A12] ] [ [A21] [A22] ] ]
pompei/pompei.py:56
Functionuse_setuptools
(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15)
ez_setup.py:108