imagej

How do I add grain to an image using the ImageJ API

泄露秘密 提交于 2019-12-02 12:18:00
问题 I am new to ImageJ and I am seeking to add grain (as defined here: http://en.wikipedia.org/wiki/Film_grain) to an image using the programmatic API of ImageJ. Is it possible? If so how? Where is the relevant documentation/Javadocs regarding adding grain to an image using ImageJ? 回答1: I'd start in Process > Noise , described in ImageJ User Guide: §29.6 Noise. You'll have to decide if the existing implementations can be made to meet your requirements. Where I can find documentation on how to

Automatically recognized objects transferred into ROIs in Imagej

◇◆丶佛笑我妖孽 提交于 2019-12-02 07:32:26
I am facing a challange in my field and I would need some advices. I have an image with tree rings. To see a photo I want to work with, you can check it from my dropbox: https://dl.dropboxusercontent.com/u/65873264/Sample.jpg I would like to write a macro/task... in which program will recognize each ring and mark it as ROI. I was trying to make this task using some plugins: Template Matching, Feature Finder and Visual grap. But those rings could be extremely variable. What I need is something like that: With Analyze particles function program recognize all vessels (objects) on a thresholded

How do I add grain to an image using the ImageJ API

半城伤御伤魂 提交于 2019-12-02 06:53:24
I am new to ImageJ and I am seeking to add grain (as defined here: http://en.wikipedia.org/wiki/Film_grain ) to an image using the programmatic API of ImageJ. Is it possible? If so how? Where is the relevant documentation/Javadocs regarding adding grain to an image using ImageJ? I'd start in Process > Noise , described in ImageJ User Guide: §29.6 Noise . You'll have to decide if the existing implementations can be made to meet your requirements. Where I can find documentation on how to achieve this using the actual API instead of the UI . As discussed in ImageJ Macro Language , one easy way is

Find Edges with ImageJ Programmatically

喜你入骨 提交于 2019-12-02 01:07:02
I want to use find edges option of the ImageJ , have the edges-found array and save it to another file programatically. ImagePlus ip1 = IJ.openImage("myimage.jpg"); ImageProcessor ip = new ColorProcessor(ip1.getWidth(), ip1.getHeight()); ip.findEdges(); However, the function findEdges is abstract and I can't have the edge-found image. EDIT: I wrote the following lines: ip.findEdges(); BufferedImage bimg = ip.getBufferedImage(); However, when I try to print out the RGB values of the BufferedImage, it only prints "-16777216" for each pixel RGB. OK, I got the solution, the problem was that I didn

Exception when trying to save images

瘦欲@ 提交于 2019-12-01 12:09:17
When starting my Java application, I get exceptions when trying to save images. In Eclipse, however, everything works fine. The application is built using fatjar and the necessary libraries (jar_imageio.jar and ij.jar) have been selected for export as well. I tried using ImageIO and ImageJ: a.) ImageIO: ImageIO.write(image, "jpg", new File(f)); Exception in thread "main" sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriterSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null! at

Exception when trying to save images

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 08:11:15
问题 When starting my Java application, I get exceptions when trying to save images. In Eclipse, however, everything works fine. The application is built using fatjar and the necessary libraries (jar_imageio.jar and ij.jar) have been selected for export as well. I tried using ImageIO and ImageJ: a.) ImageIO: ImageIO.write(image, "jpg", new File(f)); Exception in thread "main" sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider com.sun.media.imageioimpl.plugins.jpeg

ImageJ opening imagePlus window as an internal frame inside a desktopPane

夙愿已清 提交于 2019-11-29 18:08:42
I am having some trouble in ImageJ with one of its files. Basically set up a desktop pane that analyzes and opens images. But when the program opens the image it opens it as a separate JFrame. I would like to be an internal JFrame. So basically the image opens up in the desktop pane. I have tried a couple of things like creating a internal frame class and adding the win to the desktopPane but nothing seems to work it still opens it as a separate JFrame. I was wondering if anyone knows how to do this. This is my code (this function is just calling .show() to display the image, the code for the

Python的一些细节

孤人 提交于 2019-11-29 08:29:30
1. 复数是由一个实数和一个虚数组合构成,表示为:x+yj 一个复数时一对有序浮点数 (x,y),其中 x 是实数部分,y 是虚数部分。 1、 虚数不能单独存在,它们总是和一个值为 0.0 的实数部分一起构成一个复数 2、复数由实数部分和虚数部分构成 3、表示虚数的语法:real+imagej 4、 实数部分和虚数部分都是浮点数 5、虚数部分必须有后缀j或J 2. 基本语法是通过 {} 和 : 来代替以前的 % 。 format 函数可以接受不限个参数,位置可以不按顺序 3.1415926 {:.2f} 3.14 保留小数点后两位 3.1415926 {:+.2f} +3.14 带符号保留小数点后两位 -1 {:+.2f} -1.00 带符号保留小数点后两位 2.71828 {:.0f} 3 不带小数 5 {:0>2d} 05 数字补零 (填充左边, 宽度为2) 5 {:x<4d} 5xxx 数字补x (填充右边, 宽度为4) 10 {:x<4d} 10xx 数字补x (填充右边, 宽度为4) 1000000 {:,} 1,000,000 以逗号分隔的数字格式 0.25 {:.2%} 25.00% 百分比格式 1000000000 {:.2e} 1.00e+09 指数记法 13 {:>10d} 13 右对齐 (默认, 宽度为10) 13 {:<10d} 13 左对齐 (宽度为10)

How to connect ImageJ to python?

半世苍凉 提交于 2019-11-29 02:39:58
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 ImageJ to Python and call all the functions within Python. I wonder how I can do that to finish all the processing in Python rather than open the interpreter in ImageJ? There is this https://github.com/imagej/imagej.py module which provides an integration between Python and ImageJ. With it you can easily use ImageJ in Python. Here is a sample script:

How to connect ImageJ to python?

我们两清 提交于 2019-11-27 17:11:24
问题 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 ImageJ to Python and call all the functions within Python. I wonder how I can do that to finish all the processing in Python rather than open the interpreter in ImageJ? 回答1: There is this https://github.com/imagej/imagej.py module which provides an