MCPcopy Create free account

hub / github.com/ColCarroll/imcmc / functions

Functions36 in github.com/ColCarroll/imcmc

↓ 3 callersFunctionget_figsize
Helper to scale figures
imcmc/imcmc.py:297
↓ 3 callersMethodplot
(self, n_points=1000, linewidth=2, ax=None)
imcmc/color.py:46
↓ 2 callersFunction_process_image_trace
Adds Gaussian blur
imcmc/imcmc.py:303
↓ 2 callersFunctionget_rainbow
Creates a rainbow color cycle
imcmc/imcmc.py:13
↓ 1 callersMethodgen_points
(self, image, n_points)
imcmc/color.py:96
↓ 1 callersMethodimage_mcmc
(self, image)
imcmc/color.py:186
↓ 1 callersMethodmake_line
Create a line from `start` to `end`, with points at all integer coordinates on the way. The strategy is to find all the integer coordinates i
imcmc/color.py:29
↓ 1 callersMethodmake_segments
(self, start, end)
imcmc/color.py:14
↓ 1 callersFunctionplot_multitrace_color
Plot the trace from a color image Does additive blending of the three channels using Pillow. Higher `blur` make the colors look right, but th
imcmc/imcmc.py:315
Method__init__
(self, image, strategy)
imcmc/color.py:10
Method__init__
(self, dark=True)
imcmc/color.py:118
Method__init__
(self, step_size=None, dark=True)
imcmc/color.py:182
Method__init__
(self, scale=15)
imcmc/color.py:218
Method__init__
(self, img)
imcmc/imcmc.py:61
Methodgen_points
(self, image, n_points)
imcmc/color.py:75
Methodgen_points
(self, image, n_points)
imcmc/color.py:121
Methodgen_points
(self, image, n_points)
imcmc/color.py:149
Methodgen_points
(self, image, n_points)
imcmc/color.py:163
Methodgen_points
(self, image, n_points)
imcmc/color.py:213
Methodgen_points
(self, image, n_points)
imcmc/color.py:221
Functionload_image
Load filename into a numpy array, filling in transparency with 0's. Parameters ---------- image_file : str File to load. Usually
imcmc/imcmc.py:26
Functionmake_color_gif
Make a gif of the color trace. SUPER EXPERIMENTAL! Tries to grab portions of the trace from Parameters ---------- trace : pymc3.Mul
imcmc/imcmc.py:351
Functionmake_gif
Make a gif of the grayscale trace. Parameters ---------- trace : pymc3.MultiTrace Get this from sample_grayscale image : num
imcmc/imcmc.py:208
Methodperform
Evaluates the density of the image at the given point.
imcmc/imcmc.py:68
Functionplot_multitrace
Plot an image of the grayscale trace. Parameters ---------- trace : pymc3.MultiTrace Get this from sample_grayscale image :
imcmc/imcmc.py:159
Functionsample_color
Run MCMC on a color image. EXPERIMENTAL! Parameters ---------- image : numpy.ndarray Image array from `load_image`. Should have
imcmc/imcmc.py:128
Functionsample_grayscale
Run MCMC on a 1 color image. Works best on logos or text. Parameters ---------- image : numpy.ndarray Image array from `load_imag
imcmc/imcmc.py:77
Functiontest_load_color_image
()
test/test_imcmc.py:17
Functiontest_load_gray_image
()
test/test_imcmc.py:12
Functiontest_make_color_gif
()
test/test_imcmc.py:58
Functiontest_make_gif
()
test/test_imcmc.py:34
Functiontest_plot_multitrace
()
test/test_imcmc.py:28
Functiontest_plot_multitrace_color
()
test/test_imcmc.py:51
Functiontest_sample_color
()
test/test_imcmc.py:44
Functiontest_sample_grayscale
()
test/test_imcmc.py:22
Functionupdate
(idx)
imcmc/imcmc.py:280