Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ColCarroll/imcmc
/ functions
Functions
36 in github.com/ColCarroll/imcmc
⨍
Functions
36
◇
Types & classes
9
↓ 3 callers
Function
get_figsize
Helper to scale figures
imcmc/imcmc.py:297
↓ 3 callers
Method
plot
(self, n_points=1000, linewidth=2, ax=None)
imcmc/color.py:46
↓ 2 callers
Function
_process_image_trace
Adds Gaussian blur
imcmc/imcmc.py:303
↓ 2 callers
Function
get_rainbow
Creates a rainbow color cycle
imcmc/imcmc.py:13
↓ 1 callers
Method
gen_points
(self, image, n_points)
imcmc/color.py:96
↓ 1 callers
Method
image_mcmc
(self, image)
imcmc/color.py:186
↓ 1 callers
Method
make_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 callers
Method
make_segments
(self, start, end)
imcmc/color.py:14
↓ 1 callers
Function
plot_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
Method
gen_points
(self, image, n_points)
imcmc/color.py:75
Method
gen_points
(self, image, n_points)
imcmc/color.py:121
Method
gen_points
(self, image, n_points)
imcmc/color.py:149
Method
gen_points
(self, image, n_points)
imcmc/color.py:163
Method
gen_points
(self, image, n_points)
imcmc/color.py:213
Method
gen_points
(self, image, n_points)
imcmc/color.py:221
Function
load_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
Function
make_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
Function
make_gif
Make a gif of the grayscale trace. Parameters ---------- trace : pymc3.MultiTrace Get this from sample_grayscale image : num
imcmc/imcmc.py:208
Method
perform
Evaluates the density of the image at the given point.
imcmc/imcmc.py:68
Function
plot_multitrace
Plot an image of the grayscale trace. Parameters ---------- trace : pymc3.MultiTrace Get this from sample_grayscale image :
imcmc/imcmc.py:159
Function
sample_color
Run MCMC on a color image. EXPERIMENTAL! Parameters ---------- image : numpy.ndarray Image array from `load_image`. Should have
imcmc/imcmc.py:128
Function
sample_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
Function
test_load_color_image
()
test/test_imcmc.py:17
Function
test_load_gray_image
()
test/test_imcmc.py:12
Function
test_make_color_gif
()
test/test_imcmc.py:58
Function
test_make_gif
()
test/test_imcmc.py:34
Function
test_plot_multitrace
()
test/test_imcmc.py:28
Function
test_plot_multitrace_color
()
test/test_imcmc.py:51
Function
test_sample_color
()
test/test_imcmc.py:44
Function
test_sample_grayscale
()
test/test_imcmc.py:22
Function
update
(idx)
imcmc/imcmc.py:280