MCPcopy Create free account

hub / github.com/akazdayo/pixelart / functions

Functions252 in github.com/akazdayo/pixelart

↓ 31 callersFunctionprocess_image
Run the full pixel-art conversion pipeline on *img*. Parameters ---------- img: Input image in RGB or RGBA format. options:
pixelart_backend/pipeline.py:129
↓ 12 callersMethodordered_dither
( self, image: np.ndarray, matrix_size: int = 4, intensity: float = 1.0, )
pixelart_backend/filters.py:266
↓ 10 callersMethodadd_grid
( self, image: np.ndarray, grid_size: int, line_color: tuple[int, int, int] =
pixelart_backend/filters.py:178
↓ 10 callersMethodconvert
( self, img: NDArray[np.uint8], option: str, custom: list[list[int]] | None =
pixelart_backend/convert.py:91
↓ 9 callersMethoddog
(self, img: np.ndarray, scratch: bool = False)
pixelart_backend/filters.py:26
↓ 8 callersFunctioncv_to_base64
Encode an OpenCV image (BGR/BGRA) to a PNG base64 string.
pixelart_backend/pipeline.py:23
↓ 8 callersMethoddecrease
(self, image: np.ndarray)
pixelart_backend/filters.py:161
↓ 8 callersMethodget_color
( self, image: np.ndarray, color: int, iter_count: int, )
pixelart_backend/ai.py:10
↓ 8 callersMethodlist_color_palettes
()
pixelart_backend/convert.py:43
↓ 7 callersMethodatkinson
(self, image: np.ndarray, intensity: float = 1.0)
pixelart_backend/filters.py:323
↓ 7 callersMethoddelete_alpha
(self, image: NDArray[np.uint8])
pixelart_backend/convert.py:121
↓ 7 callersMethodfloyd_steinberg
(self, image: np.ndarray, intensity: float = 1.0)
pixelart_backend/filters.py:226
↓ 6 callersMethod_resolve_palette_path
( path: str, _project_root: Path | None = None, _package_root: Any | None = None,
pixelart_backend/convert.py:59
↓ 6 callersMethoddelete_transparent_color
(self, image: NDArray[np.uint8])
pixelart_backend/convert.py:130
↓ 6 callersMethodread_csv
(self, path: str)
pixelart_backend/convert.py:84
↓ 5 callersMethodresize_image
(self, image: NDArray[np.uint8])
pixelart_backend/convert.py:113
↓ 4 callersMethod_csv_stems
(base: Any)
pixelart_backend/convert.py:35
↓ 4 callersMethodcanny
(self, image: np.ndarray, th1: float, th2: float)
pixelart_backend/filters.py:10
↓ 4 callersMethodget_color_count
(self, image: np.ndarray)
pixelart_backend/ai.py:40
↓ 4 callersMethodgrid_mosaic
(self, image: np.ndarray, size: int)
pixelart_backend/filters.py:152
↓ 4 callersMethodlab2rgb
(self, image: np.ndarray)
pixelart_backend/ai.py:45
↓ 4 callersMethodmedian
(self, image: np.ndarray, size: int)
pixelart_backend/filters.py:106
↓ 4 callersMethodmorphology_erode
(self, image: np.ndarray)
pixelart_backend/filters.py:80
↓ 4 callersFunctionpallet_write
(col, index)
pages/color_sample.py:22
↓ 4 callersMethodslider_mosaic
(self, image: np.ndarray, ratio: float)
pixelart_backend/filters.py:142
↓ 3 callersMethod_candidate_paths
(path: str)
pixelart_backend/convert.py:20
↓ 3 callersFunction_hex_to_rgb
Convert a ``#rrggbb`` hex string to an ``[r, g, b]`` list.
pixelart_backend/pipeline.py:29
↓ 3 callersMethodapply_kuwahara
(self, image: np.ndarray)
pixelart_backend/filters.py:102
↓ 3 callersMethodbrightness
(self, image: np.ndarray, value: float)
pixelart_backend/filters.py:121
↓ 3 callersMethodcontrast
(self, image: np.ndarray, value: float)
pixelart_backend/filters.py:135
↓ 3 callersFunctionload_palette_rows
(palette_name: str)
pixelart_backend/convert.py:145
↓ 3 callersMethodsaturation
(self, image: np.ndarray, value: float)
pixelart_backend/filters.py:114
↓ 3 callersMethodsharpness
(self, image: np.ndarray, value: float)
pixelart_backend/filters.py:128
↓ 2 callersMethodcustom_palette
( # TODO: pandasからndarrayに変更したい self, df=pd.DataFrame( [ {"hex":
src/draw.py:118
↓ 2 callersMethodget_image
(self, upload)
src/draw.py:237
↓ 2 callersMethodhex_to_rgb
(self, hex_code)
src/draw.py:96
↓ 2 callersMethodkuwahara
(im: np.ndarray, n: int)
pixelart_backend/filters.py:89
↓ 2 callersFunctionlist_palette_names
()
pixelart_backend/convert.py:141
↓ 2 callersMethodmorphology_dilate
(self, image: np.ndarray)
pixelart_backend/filters.py:67
↓ 1 callersMethoddraw_text
(self)
src/draw.py:20
↓ 1 callersMethodexperimental
(self)
src/draw.py:150
↓ 1 callersFunctionfile_dir
()
pages/color_sample.py:14
↓ 1 callersMethodhex_to_rgblist
(self, hex_list)
src/draw.py:103
↓ 1 callersMethodmore_options
(self)
src/draw.py:194
↓ 1 callersFunctionread_csv
(path)
pages/color_sample.py:7
↓ 1 callersMethodshare
(self)
src/draw.py:87
↓ 1 callersMethodshow_custom
(self, col)
src/draw.py:139
Method__init__
(self)
src/draw.py:10
Method__init__
(self)
pixelart_backend/filters.py:7
Method__init__
(self)
pixelart_backend/filters.py:111
Method__init__
(self)
pixelart_backend/filters.py:175
Method__init__
(self)
pixelart_backend/filters.py:223
Method__init__
(self)
pixelart_backend/ai.py:7
Method__init__
(self)
pixelart_backend/convert.py:16
Method_filter
( img_array: np.ndarray, size: int, p: int, sigma: float,
pixelart_backend/filters.py:27
Methodai_instance
AI インスタンスを作成
tests/test_ai.py:10
Methodbgr_image
テスト用 BGR 画像 (10x10)
tests/test_pipeline.py:18
Methodbgra_image
テスト用 BGRA 画像 (10x10)
tests/test_pipeline.py:23
Methodconverter
Convert インスタンスを作成
tests/test_convert.py:11
Methoddithering
Dithering インスタンスを作成
tests/test_filters.py:385
Methodedge_filter
EdgeFilter インスタンスを作成
tests/test_filters.py:10
Methodenhancer
ImageEnhancer インスタンスを作成
tests/test_filters.py:154
Methodfake_get_color
(self, image, color_num, iter)
tests/test_pipeline.py:377
Methodfile_dir
(self)
src/draw.py:13
Methodgrid_mask
GridMask インスタンスを作成
tests/test_filters.py:314
Methodhex_to_bgr
Hex カラーコードを BGR (OpenCV形式) に変換
src/draw.py:110
Methodlarge_image
Full HD より大きい画像 (2000x2000)
tests/test_convert.py:26
Functionmain
(web)
src/run.py:17
Methodrgb_image
テスト用 RGB 画像 (50x50)
tests/test_pipeline.py:139
Methodrgb_image
テスト用 RGB 画像 (30x30)
tests/test_filters.py:15
Methodrgb_image
テスト用 RGB 画像 (30x30)
tests/test_filters.py:159
Methodrgb_image
テスト用 RGB 画像 (30x30)
tests/test_filters.py:319
Methodrgb_image
テスト用 RGB 画像 (10x10) — 小さいサイズ
tests/test_filters.py:390
Methodrgb_image
テスト用 RGB 画像 (100x100)
tests/test_convert.py:16
Methodrgba_image
テスト用 RGBA 画像 (50x50)
tests/test_pipeline.py:144
Methodrgba_image
テスト用 RGBA 画像 (20x20)
tests/test_ai.py:15
Methodrgba_image
テスト用 RGBA 画像 (30x30)
tests/test_filters.py:20
Methodrgba_image
テスト用 RGBA 画像 (30x30)
tests/test_filters.py:324
Methodrgba_image
テスト用 RGBA 画像 (10x10) — 小さいサイズ
tests/test_filters.py:395
Methodrgba_image
テスト用 RGBA 画像 (100x100)
tests/test_convert.py:21
Methodselective_is_file
(self_path)
tests/test_convert.py:399
Methodsimple_rgba_image
2色のみの単純な RGBA 画像 (10x10)
tests/test_ai.py:20
Methodtest_add_grid_custom_color
カスタム色でグリッドが描画されること
tests/test_filters.py:357
Methodtest_add_grid_custom_thickness
カスタム太さでグリッドが描画されること
tests/test_filters.py:362
Methodtest_add_grid_full_opacity
opacity = 1.0 でグリッドが完全に描画されること
tests/test_filters.py:352
Methodtest_add_grid_modifies_image
グリッドが実際に画像を変更すること
tests/test_filters.py:367
Methodtest_add_grid_rgb_output_shape
RGB 画像でグリッドの出力形状が正しいこと
tests/test_filters.py:332
Methodtest_add_grid_rgba_output_shape
RGBA 画像でグリッドの出力形状が正しいこと
tests/test_filters.py:337
Methodtest_add_grid_rgba_preserves_alpha
RGBA 画像のアルファチャンネルが維持されること
tests/test_filters.py:342
Methodtest_add_grid_rgba_with_opacity
RGBA 画像で opacity < 1.0 のグリッドが正しく描画されること
tests/test_filters.py:374
Methodtest_add_grid_with_opacity
opacity < 1.0 でグリッドが半透明に描画されること
tests/test_filters.py:347
Methodtest_ai_palette
(self, rgb_image, monkeypatch)
tests/test_pipeline.py:374
Methodtest_ai_palette_uniform_red_image
(self)
tests/test_pipeline.py:399
Methodtest_apply_kuwahara_output_shape
apply_kuwahara の出力形状が正しいこと
tests/test_filters.py:116
Methodtest_atkinson_output_dtype
出力の dtype が uint8 であること
tests/test_filters.py:509
Methodtest_atkinson_rgb_output_shape
RGB 画像で Atkinson の出力形状が正しいこと
tests/test_filters.py:494
Methodtest_atkinson_rgba_output_shape
RGBA 画像で Atkinson の出力形状が正しいこと
tests/test_filters.py:499
Methodtest_atkinson_rgba_preserves_alpha
RGBA 画像のアルファチャンネルが維持されること
tests/test_filters.py:504
Methodtest_atkinson_values_in_range
出力値が 0-255 の範囲内であること
tests/test_filters.py:519
Methodtest_atkinson_with_intensity
intensity パラメータが動作すること
tests/test_filters.py:514
next →1–100 of 252, ranked by callers