This commit is contained in:
2021-04-28 09:29:19 +02:00
parent 84e20e54cc
commit a9f0de27e6
1030 changed files with 14567 additions and 227310 deletions

View File

@@ -10,14 +10,14 @@ ip = load_image("images/img2.png", title="Image2")
#Basic image manipulation: creation, copying, padding, saving
resized = resize(ip, 300,300)
save_image(resized,get_context().setup.expandPath("{images}/resized.tiff") ,"tiff")
save_image(resized,expand_path("{images}/resized.tiff") ,"tiff")
crop=sub_image(ip,10,20,50,30)
bin_im = binning(ip,2)
new_im = new_image(256, 256, "color")
copy_image_to(bin_im, new_im, 20, 20)
pad_im = pad_image(ip, 1, 2, 3, 4, Color.RED)
stack=create_stack([ip,resized,crop, bin_im, new_im, pad_im], title = "Basic Functions")
save_image(stack,get_context().setup.expandPath("{images}/stack.tiff") ,"tiff")
save_image(stack,expand_path("{images}/stack.tiff") ,"tiff")
stack.show()

View File

@@ -17,6 +17,6 @@ pad_im = pad_image(orig, 1, 2, 3, 4, Color.RED)
stack=create_stack([orig,resized,crop, bin_im, new_im, pad_im])
save_image(stack,context.setup.expandPath("{data}/img/out.tiff") ,"tiff")
save_image(stack,expand_paths("{data}/img/out.tiff") ,"tiff")
stack.show()

View File

@@ -14,14 +14,14 @@ ip4 = load_image("images/img4.png", title="Square")
#Basic operaions creation, copying, padding, saving
resized = resize(ip2, 300,300)
save_image(resized,get_context().setup.expandPath("~/resized.tiff") ,"tiff")
save_image(resized,expand_path("~/resized.tiff") ,"tiff")
crop=sub_image(ip2,10,20,50,30)
bin_im = binning(ip2,2)
new_im = new_image(256, 256, "color")
copy_image_to(bin_im, new_im, 20, 20)
pad_im = pad_image(ip2, 1, 2, 3, 4, Color.RED)
stack=create_stack([ip2,resized,crop, bin_im, new_im, pad_im], title = "Basic Functions")
save_image(stack,get_context().setup.expandPath("~/stack.tiff") ,"tiff")
save_image(stack,expand_path("~/stack.tiff") ,"tiff")
stack.show()

View File

@@ -14,14 +14,14 @@ ip4 = load_image("{images}/img4.png", title="Square")
#Basic operaions creation, copying, padding, saving
resized = resize(ip2, 300,300)
save_image(resized,context.setup.expandPath("~/resized.tiff") ,"tiff")
save_image(resized,expand_path("~/resized.tiff") ,"tiff")
crop=sub_image(ip2,10,20,50,30)
bin_im = binning(ip2,2)
new_im = new_image(256, 256, "color")
copy_image_to(bin_im, new_im, 20, 20)
pad_im = pad_image(ip2, 1, 2, 3, 4, Color.RED)
stack=create_stack([ip2,resized,crop, bin_im, new_im, pad_im], title = "Basic Functions")
save_image(stack,context.setup.expandPath("~/stack.tiff") ,"tiff")
save_image(stack,expand_path("~/stack.tiff") ,"tiff")
stack.show()