Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Visillect/CubePlusPlus
/ functions
Functions
62 in github.com/Visillect/CubePlusPlus
⨍
Functions
62
◇
Types & classes
1
↓ 10 callers
Function
get_path
(ds_dir, img_id, data_type)
code/utils/paths.py:23
↓ 7 callers
Function
json_load
(fname)
code/utils/cube_io.py:50
↓ 6 callers
Function
get_common_path
(ds_dir, data_type)
code/utils/paths.py:33
↓ 6 callers
Function
repr_ang_error
Calc reproduction angular errors. See "Finlayson, Graham D., and Roshanak Zakizadeh. Reproduction angular error: An improved performance metri
challenge/calc_metrics.py:37
↓ 3 callers
Function
cr2_convert
(input_path, output_path, raw_png_mode, dcraw_size=False, save_tmp_file=False)
code/utils/cr2_convert.py:70
↓ 3 callers
Function
get_simple_common_path
(simple_ds_dir, role, data_type)
code/build_simple_ds.py:48
↓ 2 callers
Function
default_crop
(img)
code/utils/cr2_convert.py:25
↓ 2 callers
Function
get_img_ids
(ds_dir)
code/utils/paths.py:67
↓ 2 callers
Function
get_simple_path
(simple_ds_dir, role, simple_img_id, data_type)
code/build_simple_ds.py:42
↓ 2 callers
Function
json_save
(fname, data, indent_len=2)
code/utils/cube_io.py:56
↓ 2 callers
Function
main
(gt, pred, problem, output=None, verbose=True)
challenge/calc_metrics.py:125
↓ 2 callers
Function
normalize
(v)
challenge/calc_metrics.py:27
↓ 2 callers
Function
numpy_average_downscale
(image, s)
code/utils/cr2_convert.py:13
↓ 2 callers
Function
parse_csv
(csv_path)
challenge/calc_metrics.py:9
↓ 1 callers
Function
_get_rand_score
(img_id)
code/build_simple_ds.py:88
↓ 1 callers
Function
_img_id
(path)
code/utils/paths.py:73
↓ 1 callers
Function
angle
(v1, v2)
challenge/calc_metrics.py:31
↓ 1 callers
Function
assert_same_images
(gt_imgs, pred_imgs)
challenge/calc_metrics.py:20
↓ 1 callers
Function
build_ds
(ds_dir, overwrite, jobs)
code/build_ds.py:150
↓ 1 callers
Function
build_simple_ds
(inp_dir, out_dir, overwrite=False, verbose=False, read_only=False)
code/build_simple_ds.py:124
↓ 1 callers
Function
calc_angle
calc angle between vectors in degrees
code/utils/calc_gt.py:31
↓ 1 callers
Function
calc_exif_statistics
Calculates some extra statistics about exifs, not used in the main ds part
code/build_ds.py:121
↓ 1 callers
Function
calc_gt
calc answers by triangles Args: img(np.array): img with float64 values markup(dict): loaded json with a markup Returns:
code/utils/calc_gt.py:66
↓ 1 callers
Function
calc_img_id_role
(img_id)
code/build_simple_ds.py:96
↓ 1 callers
Function
calc_mean_chromaticity
Calculate mean (angle bisector) chromaticity
code/utils/calc_gt.py:38
↓ 1 callers
Function
calc_metrics
(gt, pred, problem_type)
challenge/calc_metrics.py:79
↓ 1 callers
Function
calc_single_illuminance
(gt, estimation)
code/utils/calc_gt.py:46
↓ 1 callers
Function
calc_triangle_color
calc mean color on (downscaled) triangle Args: img(np.array): img with float64 values points(list): list of triangle coords
code/utils/calc_gt.py:9
↓ 1 callers
Function
convert
(input_path, output_path, ext, scale)
code/build_simple_ds.py:110
↓ 1 callers
Function
extract_exifs
(ds_dir, img_ids)
code/build_ds.py:30
↓ 1 callers
Function
get_preview
(img_png_path, field_name="gt")
challenge/make_preview.py:32
↓ 1 callers
Function
join_camera_estimation_info
(ds_dir, img_ids)
code/build_ds.py:97
↓ 1 callers
Function
join_gt_info
(ds_dir, img_ids)
code/build_ds.py:39
↓ 1 callers
Function
join_meta_info
(ds_dir, img_ids)
code/build_ds.py:57
↓ 1 callers
Function
jpg_load
(fname)
code/utils/cube_io.py:40
↓ 1 callers
Function
jpg_save
(fname, img)
code/utils/cube_io.py:46
↓ 1 callers
Function
linearize
:param saturation_lvl: 2**14-1 is a common value. Not all images have the same value.
challenge/make_preview.py:24
↓ 1 callers
Function
linearize
Args: img(np.array) black_lvl(int) saturation_lvl(int): 2**14-1 is a common value. Not all imag
code/utils/cube_io.py:20
↓ 1 callers
Function
mean_repr_ang_error
(gt, pred)
challenge/calc_metrics.py:50
↓ 1 callers
Function
parse_args
()
challenge/calc_metrics.py:116
↓ 1 callers
Function
parse_args
()
challenge/make_preview.py:15
↓ 1 callers
Function
parse_args
()
code/build_simple_ds.py:177
↓ 1 callers
Function
parse_args
()
code/build_ds.py:168
↓ 1 callers
Function
parse_args
()
code/utils/cr2_convert.py:94
↓ 1 callers
Function
parse_args
()
code/utils/calc_gt.py:114
↓ 1 callers
Function
png16_load
load raw 16-bit (14-bit of information) image
code/utils/cube_io.py:13
↓ 1 callers
Function
png16_save
save png 16-bit image
code/utils/cube_io.py:34
↓ 1 callers
Function
prepare_dirs
(simple_ds_dir)
code/build_simple_ds.py:53
↓ 1 callers
Function
prepare_generated_dirs
(ds_dir, overwrite=False)
code/utils/paths.py:42
↓ 1 callers
Function
process_jpg
Process ([crop + downscale]) jpg view image Args: inp_path(str): path of 8-bit .tiff image out_path(str): path for 8-bit .jpg im
code/utils/cr2_convert.py:32
↓ 1 callers
Function
process_png
Process (debayer + [crop]) raw image Args: inp_path(str): path of 16-bit .tiff image out_path(str): path for 16-bit .png image
code/utils/cr2_convert.py:46
↓ 1 callers
Function
remove_and_prepare_dirs
(out_dir, overwrite, read_only, verbose)
code/build_simple_ds.py:64
↓ 1 callers
Function
save_gt
(img_path, markup_path, output_path)
code/utils/calc_gt.py:107
↓ 1 callers
Function
save_json
(json_path, data)
challenge/calc_metrics.py:14
↓ 1 callers
Function
save_preview
(img_path, img)
challenge/make_preview.py:48
↓ 1 callers
Function
tiff16_load
load raw 16-bit (14-bit of information) image (tiff from dcraw)
code/utils/cube_io.py:6
↓ 1 callers
Function
two_illuminant_error
mean squared simmetrized reproduction angular error
challenge/calc_metrics.py:62
↓ 1 callers
Function
worst_mean_repr_ang_error
(gt, pred, skip_share=0.75)
challenge/calc_metrics.py:55
Method
__init__
(self, ds_dir)
code/build_ds.py:18
Function
csv_path
(ds_dir)
code/build_simple_ds.py:106
Method
path
(data_type)
code/build_ds.py:22
Method
process
(self, img_id)
code/build_ds.py:21