Questions tagged [image-slicer]

9 questions
1
vote
1 answer

Slice images in directory using glob, image_slicer based on pixel sizes instead of specifying the number of images to splice?

I am working with a database of images with dimensions of 4000 x 3000 pixels, and I wish to slice each image in a directory based on a pixel size (1000 x 1000). I am using the glob and image_slicer modules currently, and am currently performing…
ihb
  • 292
  • 9
  • 27
0
votes
0 answers

Is there a way to test my image registration code on 3D slicer and view the results?

I wrote a python code for image registration. I want to view if it works by running the code on 3D slicer and see if the two images align properly. Is there any way to transfer my code in python to 3D slicer and run it to see if the two images…
0
votes
1 answer

I cant install Image_slicer library

I'm trying to install image_slicer, but pip can't install PIL, which is one of its dependencies. I can install the newest version of PIL just fine, but image_slicer wants a different version. That one I can't download myself. Just read the bottom…
Jonathan
  • 13
  • 4
0
votes
1 answer

3D Slicer fails to open on MobaXterm

Good Morning, My setup: Windows 10 - Ubuntu WSL1 (Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)) - MobaXterm In bashrc I have the following lines: # export…
fabio.geraci
  • 305
  • 2
  • 5
  • 18
0
votes
0 answers

Getting Type error:function takes exactly 6 arguments (5 given) while using image_slicer python

I am using image_slicer library in python to slice the images in tiff format(target images for image segmentation) to 16 pieces and save to a particular directory. for i,img in enumerate(target_img_path): tils=image_slicer.slice(img,16) …
AVA
  • 173
  • 1
  • 1
  • 6
0
votes
1 answer

Computing the thickness of branches in a 2D image

I'd like to get a measure of the thickness of branches in an image. The following is the output obtained from Fiji. I'd like to compute an average measure of the thickness associated with each edge. By edge, I mean the segment present between any…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
1 answer

Error when try to save another format using tiles in Python

I am trying to save a image using tiles and image_slicer. The default format is PNG, but I need to save as JPG and whent I try that I receive the error below. KeyError: 'JPG' I followed the documentation This is my code: tiles =…
aluiz
  • 63
  • 5
0
votes
1 answer

Image slicing in python showing attribute error

import image_slicer image_slicer.slice('image_name',16) I am trying to slice an image into 16 parts in python. And my code is the above one. This same code perfectly worked fine before (I have image_slicer version 0.3.0) but this time this is…
-1
votes
1 answer

How to label inner/outer of contour when slice/rasterize 3D objects to image stack?

For 3D printing, we slice the digital objects into image stacks in order to stack them layer by layer using a 3D printer. And when the slice is done, how to label the inner/outer to set the solid parts? The STL model: The Slices: Sample of…
vscv
  • 86
  • 4