Questions tagged [imagej]

ImageJ is a Java-based open-source image processing program that is used extensively in scientific image analysis, particularly life sciences. Please consider asking ImageJ-specific questions on the Image.sc forum: https://forum.image.sc/tags/imagej. This tag should be used for questions about programming in/for ImageJ.

ImageJ is a Java-based open-source image processing program that is used extensively in scientific multidimensional image analysis, particularly life sciences. This tag should be used for questions about ImageJ-related programming.

For questions regarding general ImageJ usage as well as ImageJ-specific questions, the Image.sc forum is the best place to ask.

ImageJ supports plugins written in Java and scripts in several languages (i.e. Javascript, Python, Beanshell, Groovy, Clojure, Ruby, and the ImageJ1 macro language).

794 questions
31
votes
5 answers

How to count the number of spots in this image?

I am trying to count the number of hairs transplanted in the following image. So practically, I have to count the number of spots I can find in the center of image. (I've uploaded the inverted image of a bald scalp on which new hairs have been…
B Faley
  • 14,391
  • 34
  • 113
  • 191
27
votes
2 answers

Twain device (scanner) control in Java

I want to scan a number of papers through Java. I found the mm's computing twain library. When I run the example TwainExample.java at the site, I receive this error. uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source…
Any Thing
  • 314
  • 3
  • 5
14
votes
3 answers

How can I use ImageJ as a library for a separate Java application?

In a regular Java application, I have a BufferedImage that I would like to manipulate with ImageJ. I have a macro that is exactly what I need to execute. I suspect that the first step is to make an ImagePlus object, but I am not sure how to then run…
eiowmqui
  • 227
  • 1
  • 3
  • 6
8
votes
1 answer

Calling ImageJ from Mathematica

From Mathematica, I wish to pass an image to an ImageJ plugin and get the result sent from ImageJ to Mathematica. JLink is the tool that will help, but I am familiar neither with it nor with ImageJ (making it hard to leverage existing related…
Matthias Odisio
  • 1,988
  • 11
  • 19
8
votes
4 answers

Java - How to write a very large (20,000x20,000 px or larger) tif image

I am working with extremely large tif images that I am composing into a large single image. I have a library that was created by a colleague of mine that generates the image pyramid and provides a very handy tool for visualizing the image pyramid. …
Jameshobbs
  • 515
  • 6
  • 16
7
votes
6 answers

Image processing: Rotational alignment of an object

I have a stack of images with a bar close to the center. As the stack progresses the bar pivots around one end and the entire stack contains images with the bar rotated at many different angles up to 45 degrees above or below horizontal. As shown…
user1863037
  • 71
  • 1
  • 2
6
votes
3 answers

ImageJ Brightness & Contrast over a stack of images

I'm looking through a dataset set of images in ImageJ (a stack of .tif images, about 130 frames), and I have a problem with the dataset. It's a series of microscope images, with each frame being a plane about 3-4 micrometers above/below the previous…
Magsol
  • 4,480
  • 11
  • 40
  • 65
6
votes
4 answers

How to connect ImageJ to python?

I am using Python to design a software, and the image processing is one of the steps. I am using ImageJ to realize this. Since there is a Jython interpreter within ImageJ, which can be opened within ImageJ software, there must be a way to connect…
Jarvis Du
  • 359
  • 1
  • 4
  • 13
6
votes
1 answer

Run Fiji from command line?

Here is what I want to do: I want to run Fiji from command-line, to do something like batch image processing. I imagine by typing some command at some console, some batch file can be launched to execute some macro. In this case, the Fiji GUI will…
Nick X Tsui
  • 2,400
  • 6
  • 31
  • 62
5
votes
2 answers

R/ImageJ: Measuring shortest distance between points and curves

I have some experience with R as a statistics platform, but am inexperienced in image based maths. I have a series of photographs (tiff format, px/µm is known) with holes and irregular curves. I'd like to measure the shortest distance between a hole…
Mikko
  • 6,175
  • 6
  • 40
  • 82
5
votes
2 answers

Detecting hexagonal shapes in greyscale or binary image

For my bachelor thesis I need to analyse images taken in the ocean to count and measure the size of water particles. my problem: besides the wanted water particles, the images show hexagonal patches all over the image in: - different sizes - not…
homework
  • 51
  • 2
5
votes
3 answers

How can I call/execute an imageJ macro with R?

I've written a macro in imageJ that spits out a data frame which I then analyze in R. I'd love to be able to have the whole procedure work in R without having to first run the macro manually in imageJ. Currently the macro prompts the user for the…
ACG
  • 139
  • 1
  • 7
4
votes
2 answers

color match in images

I have two images (slices) which were taken by two camera sensors to complete one image. However, due to some differences in sensors' performance, the colour/tones of them are different and I need to match them to make one unified image. I used the…
gin
  • 693
  • 2
  • 9
  • 19
4
votes
0 answers

ImageJ - ScaleBar in Java

I have opened an image with this code: this.imp = IJ.openImage(imageFilePath); imp.show(); And now, I need to set the scaleBar. I need to set it after imp.show() because the user has to draw a line before (and later set the scale). But it only…
David
  • 41
  • 2
4
votes
3 answers

How to specify colormap when saving tiff stack

I'm using tifffile in python to save out 3-channel tiff stacks, which I then want to read into ImageJ or FIJI. These tiff stacks open as composites in ImageJ with each channel assigned a (presumably default) colormap/LUT. However, the colors that…
holastello
  • 531
  • 5
  • 12
1
2 3
52 53