those dependencies are for Windows users only (and obsolete, somehow; they were not updated)
the filter detects whether Windows is the OS running or not: if not, it calls another function
if (systemrunning == "Windows"):
# cartonizer with removal of small areas
pdb.plug_in_cartoonizer(newImage, Preprocessed_Layer,
# nr-of-colors, colorweight, weightingmode, algorithm
inNrCol, 8, 2, 0,
# B&W, legend, denoise
False, False, True,
# spotsize, despotting-iterat, erode, erode-iterat
100, 5, True, 20,
# dolines, color, removeshorter, postprocess
False, 0, 0, 0, 0)
else:
#[G'MIC] Cartoon: -cartoon 10,400,30,0.1,1.5,7,0
pdb.plug_in_gmic(newImage, Preprocessed_Layer, 1, # 1=input only active layer
"-v - -cartoon 10,400,30,0.1,1.5,"
+str(inNrCol)
+"0")