Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JosephCatrambone/pixelbox
/ functions
Functions
74 in github.com/JosephCatrambone/pixelbox
⨍
Functions
74
◇
Types & classes
7
↓ 8 callers
Function
phash
(img:&DynamicImage)
src/image_hashes/phash.rs:3
↓ 7 callers
Function
hamming_distance
(hash_a:&Vec<u8>, hash_b:&Vec<u8>)
src/engine.rs:594
↓ 6 callers
Function
tokenize_query
Query utility functions:
src/engine.rs:443
↓ 4 callers
Method
get_tracked_folders
(&mut self)
src/engine.rs:417
↓ 4 callers
Method
open
(filename:&Path)
src/engine.rs:117
↓ 3 callers
Method
query_by_image_hash_from_image
(&mut self, indexed_image:&IndexedImage)
src/engine.rs:363
↓ 2 callers
Function
indexed_image_from_row
We should implement try_from_row for this. The last entry is seven, so tags or hashes start at row.get(6).
src/engine.rs:63
↓ 2 callers
Method
is_indexing_active
(&self)
src/engine.rs:173
↓ 2 callers
Function
make_byte_distance_db_function
(db: &mut Connection)
src/engine.rs:624
↓ 2 callers
Function
make_cosine_distance_db_function
(db: &mut Connection)
src/engine.rs:608
↓ 2 callers
Function
make_hamming_distance_db_function
(db: &mut Connection)
src/engine.rs:640
↓ 2 callers
Function
mlhash
(img:&DynamicImage)
src/image_hashes/nomic.rs:36
↓ 2 callers
Method
query_by_image_hash_from_file
(&mut self, img:&Path)
src/engine.rs:352
↓ 2 callers
Function
start_panel
( ui: &mut egui::Ui )
src/ui/start.rs:5
↓ 1 callers
Method
add_tracked_folder
(&mut self, folder_glob:String)
src/engine.rs:404
↓ 1 callers
Function
build_model
(latent_space: int)
resources/train.py:30
↓ 1 callers
Function
build_where_clause_from_parsed_query
(tokens: &Vec<String>, cached_similar_image: &mut Option<IndexedImage>)
src/engine.rs:499
↓ 1 callers
Function
byte_distance
(hash_a:&Vec<u8>, hash_b:&Vec<u8>)
src/engine.rs:590
↓ 1 callers
Method
clone_connection
(&self, flags: Option<OpenFlags>)
src/engine.rs:147
↓ 1 callers
Function
cosine_distance
Distance Functions Distance functions should return near zero for almost identical items and a large value for different ones. All of these methods sh
src/engine.rs:572
↓ 1 callers
Function
detect_files_being_dropped
Flagrantly stolen from the drag-and-drop documentation: https://github.com/emilk/egui/blob/master/eframe/examples/file_dialog.rs#L67
src/ui/search.rs:120
↓ 1 callers
Function
fetch_or_generate_thumbnail
Given the thumbnail cache and an image ID, will attempt to load the TextureID from the cache. On a cache hit, will return the TextureID. On a cache mi
src/ui/mod.rs:50
↓ 1 callers
Function
finalize
(encoder, config)
resources/train.py:167
↓ 1 callers
Function
folder_panel
( engine: &mut Engine, ctx: &egui::Context, ui: &mut egui::Ui )
src/ui/folders.rs:10
↓ 1 callers
Method
get_last_added
(&self)
src/engine.rs:214
↓ 1 callers
Method
get_query_results
(&self)
src/engine.rs:398
↓ 1 callers
Method
get_thumbnail
(&self)
src/indexed_image.rs:93
↓ 1 callers
Function
image_to_tensor
(img: &DynamicImage)
src/image_hashes/nomic.rs:26
↓ 1 callers
Function
image_to_tensor
Loads an image from disk using the image crate, this returns a tensor with shape (3, 384, 384). OpenAI normalization is applied. pub fn load_image<P:
src/image_hashes/efficientnet.rs:19
↓ 1 callers
Function
indexed_image_to_egui_colorimage
(indexed_image: &IndexedImage, alpha_fill:u8)
src/ui/mod.rs:33
↓ 1 callers
Method
insert_image_from_memory
(&mut self, img:IndexedImage)
src/engine.rs:224
↓ 1 callers
Function
load_image_from_path
(path: &std::path::Path)
src/ui/mod.rs:17
↓ 1 callers
Function
main
()
resources/train.py:177
↓ 1 callers
Function
mlhash
(img:&DynamicImage)
src/image_hashes/efficientnet.rs:31
↓ 1 callers
Function
navigation
(app_state: &mut MainApp, ui: &mut egui::Ui)
src/ui/menutabs.rs:7
↓ 1 callers
Method
query
(&mut self, user_input:&String)
src/engine.rs:261
↓ 1 callers
Method
remove_tracked_folder
(&mut self, folder_glob:String)
src/engine.rs:410
↓ 1 callers
Function
search_panel
( app_state: &mut MainApp, ui: &mut egui::Ui )
src/ui/search.rs:9
↓ 1 callers
Function
settings_panel
( app_state: &mut MainApp, // We will need this eventually. ui: &mut egui::Ui )
src/ui/settings.rs:5
↓ 1 callers
Method
start_indexing
(&mut self)
src/engine.rs:177
↓ 1 callers
Method
stop_indexing
(&mut self)
src/engine.rs:207
↓ 1 callers
Function
stringify_filepath
Convert a path into a canonical string. We could do a few different things to a path, but to ensure we're doing the same thing everywhere we reference
src/indexed_image.rs:101
↓ 1 callers
Function
train
(model, config: Type[Configuration])
resources/train.py:94
↓ 1 callers
Function
view_panel
( app_state: &mut MainApp, ui: &mut egui::Ui )
src/ui/view.rs:14
Method
__getitem__
(self, index: int)
resources/train.py:75
Method
__init__
(self, root, corruptions, scan_for_broken_images:bool = False)
resources/train.py:50
Method
__len__
(self)
resources/train.py:89
Function
bench_phash
[bench]
src/image_hashes/phash.rs:81
Method
clear_query_results
(&mut self)
src/engine.rs:402
Method
default
()
src/main.rs:54
Method
default
()
src/ui/mod.rs:92
Method
from_file_path
(path:&Path)
src/indexed_image.rs:35
Method
from_memory
(bytes:&mut Vec<u8>, filename:String, path:String)
src/indexed_image.rs:47
Method
get_num_indexed_images
Perform a count of the number of indexed images and cache the value.
src/engine.rs:162
Method
insert_image_from_connection
(conn: &mut Connection, mut img:IndexedImage)
src/engine.rs:228
Method
insert_image_from_path
(&mut self, path: &Path)
src/engine.rs:218
Function
load_image_from_memory
(image_data: &[u8])
src/ui/mod.rs:25
Function
main
()
src/main.rs:104
Method
new
()
src/crawler.rs:16
Method
new
(filename:&Path)
src/engine.rs:98
Function
paginate
(ui: &mut Ui, current_page: &mut u64, max_page: u64)
src/ui/mod.rs:61
Method
start_indexing
( &mut self, folders: Vec<String>, num_workers: usize, )
src/crawler.rs:22
Function
test_cosine_distance
()
src/engine.rs:704
Function
test_hamming_distance
()
src/engine.rs:694
Function
test_load_resource
()
src/indexed_image.rs:111
Function
test_phash
()
src/image_hashes/phash.rs:44
Function
test_phash_flat_white
()
src/image_hashes/phash.rs:37
Function
test_sanity
()
src/image_hashes/nomic.rs:61
Function
test_sanity
()
src/image_hashes/efficientnet.rs:55
Function
test_tokenize_query
()
src/engine.rs:674
Method
try_get_num_indexed_images
(&self)
src/engine.rs:157
Method
ui_content
(&mut self, ui: &mut egui::Ui)
src/ui/mod.rs:112
Method
ui_control
(&mut self, ui: &mut egui::Ui)
src/ui/mod.rs:101
Method
update
(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame)
src/main.rs:78