Login  Register

Re: Grid, Counter, Histogram

Posted by Olivier Burri on Oct 27, 2015; 8:37am
URL: http://imagej.273.s1.nabble.com/Grid-Counter-Histogram-tp5014772p5014788.html

Hello,

Here is a suggestion for a much faster processing than creating ROI grids on black and white images.

Convert your B/W image to 32-bit

Rescale your black and white image so that one pixel represents 0.1mm with interpolation.

Apply a threshold to match your condition (only pixels > 0, or some other value that represents the fraction of black color)

Then you can directly measure the histogram.


For having a per row counter, you can just navigate the whole length of the image like so
https://gist.github.com/lacan/27e9103eb83efc2de051

Best

Oli


> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> tclift123
> Sent: Monday, October 26, 2015 16:55
> To: [hidden email]
> Subject: Grid, Counter, Histogram
>
> I'm looking to make a macro for wax valve spreading. The problem is the lack
> of uniformity with the wax valve spread. The spread is further on the corners
> than in the center of the rectangular block. I'd like to see the furtherest
> distance that the wax traveled, but also see the distribution of the wax
> spread.
>
>
> Assuming my image is black and white, I'd like to create a grid of .1mm X .1
> mm squares along the area of the photo. If the squares have any black color,
> I'd like to store them in a recursive counter. I'd like to plot a histogram of the
> stored values along each row of the grid being one bin.
>
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Grid-
> Counter-Histogram-tp5014772.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html