@@ -98,7 +98,7 @@ def debug_plot_cielab_ab_plane_with_interpolation(
98
98
ll_num = l_num_intp
99
99
100
100
total_process_num = ll_num
101
- block_process_num = int (cpu_count () / 4 + 0.999 )
101
+ block_process_num = int (cpu_count () / 2 + 0.999 )
102
102
block_num = int (round (total_process_num / block_process_num + 0.5 ))
103
103
104
104
for b_idx in range (block_num ):
@@ -172,7 +172,7 @@ def plot_ab_plane_with_interpolation_core(
172
172
ax1 .imshow (
173
173
rgb_gm24 , extent = (- ab_max , ab_max , - ab_max , ab_max ), aspect = 'auto' )
174
174
ax1 .plot (aa , bb , color = 'k' )
175
- fname = "/work/overuse/2023/05_oog_color_map/oklab /"
175
+ fname = "/work/overuse/2023/05_oog_color_map/oklab_ab_low /"
176
176
fname += f"ab_w_lut_{ color_space_name } _{ l_idx :04d} .png"
177
177
print (fname )
178
178
pu .show_and_save (
@@ -246,7 +246,7 @@ def debug_plot_cielab_cl_plane_with_interpolation(
246
246
lightness_num = lightness_sample , hue_num = hue_sample )
247
247
248
248
total_process_num = h_num_intp
249
- block_process_num = int (cpu_count () / 2 + 0.9 )
249
+ block_process_num = int (cpu_count () / 4 + 0.9 )
250
250
print (f"block_process_num { block_process_num } " )
251
251
block_num = int (round (total_process_num / block_process_num + 0.5 ))
252
252
@@ -273,21 +273,21 @@ def debug_plot_cielab_cl_plane_with_interpolation(
273
273
def plot_oklab (
274
274
hue_sample , lightness_sample , color_space_name ,
275
275
l_num_intp , h_num_intp ):
276
- debug_plot_cielab_ab_plane_with_interpolation (
277
- hue_sample = hue_sample , lightness_sample = lightness_sample ,
278
- l_num_intp = l_num_intp , color_space_name = color_space_name )
279
- # debug_plot_cielab_cl_plane_with_interpolation(
276
+ # debug_plot_cielab_ab_plane_with_interpolation(
280
277
# hue_sample=hue_sample, lightness_sample=lightness_sample,
281
- # h_num_intp=h_num_intp, color_space_name=color_space_name)
278
+ # l_num_intp=l_num_intp, color_space_name=color_space_name)
279
+ debug_plot_cielab_cl_plane_with_interpolation (
280
+ hue_sample = hue_sample , lightness_sample = lightness_sample ,
281
+ h_num_intp = h_num_intp , color_space_name = color_space_name )
282
282
283
283
284
284
def create_oklab_luts_all ():
285
285
chroma_sample = 256
286
286
hue_sample = 4096
287
287
lightness_sample = 1024
288
- color_space_name_list = [cs .BT709 , cs .P3_D65 , cs .BT2020 ]
288
+ # color_space_name_list = [cs.BT709, cs.P3_D65, cs.BT2020]
289
289
# color_space_name_list = [cs.BT2020]
290
- # color_space_name_list = [cs.BT709, cs.P3_D65 ]
290
+ color_space_name_list = [cs .BT709 ]
291
291
292
292
met = MeasureExecTime ()
293
293
met .start ()
@@ -298,11 +298,11 @@ def create_oklab_luts_all():
298
298
# color_space_name=color_space_name)
299
299
plot_oklab (
300
300
hue_sample = hue_sample , lightness_sample = lightness_sample ,
301
- color_space_name = color_space_name , l_num_intp = 1000 , h_num_intp = 360 )
301
+ color_space_name = color_space_name , l_num_intp = 1000 ,
302
+ h_num_intp = 1000 )
302
303
met .end ()
303
304
304
305
305
306
if __name__ == '__main__' :
306
307
os .chdir (os .path .dirname (os .path .abspath (__file__ )))
307
- # create_luts_all()
308
308
create_oklab_luts_all ()
0 commit comments