Search found 50 matches

by TedBaker
2018-08-08T06:33:41-07:00
Forum: Users
Topic: Using Morhpology to remove gaps that are small
Replies: 9
Views: 1352

Re: Using Morhpology to remove gaps that are small

Sorry, I guess I missed that discussion. -connected components is also a solution for finding the black pixels from the white ones. That was also a good suggestion. Indeed, I already use -connected components, from a script that I rewrote, using some ideas, that you previously posted. The solution ...
by TedBaker
2018-08-07T16:39:58-07:00
Forum: Users
Topic: Using Morhpology to remove gaps that are small
Replies: 9
Views: 1352

Re: Using Morhpology to remove gaps that are small

I am not suggesting you use it to preserve large areas. I was only suggesting that you use it to thin your lines to 1 pixel wide. Then use txt: format to study the spacing between the black regions. For those regions that do not fit, write over your input black pixels with white pixels. Thanks fred...
by TedBaker
2018-08-07T14:35:18-07:00
Forum: Users
Topic: Using Morhpology to remove gaps that are small
Replies: 9
Views: 1352

Re: Using Morhpology to remove gaps that are small

Another method is to use morphology to change white lines that are wider than the specified width to, say, red. Any remaining white will be narrow. Then change any sequence of white-then-black to white-white. Then change red back to white. Thanks How do I this?, I am little familiar with using open...
by TedBaker
2018-08-07T10:02:37-07:00
Forum: Users
Topic: Using Morhpology to remove gaps that are small
Replies: 9
Views: 1352

Using Morhpology to remove gaps that are small

My code generates pretty accurate images that represent the dimensions of series of images. However occasionally it makes a mistake... for example the following image: where the 4th black line needs to be removed. https://image.ibb.co/ceiPFe/example.jpg Note: this image has been scaled vertically to...
by TedBaker
2018-02-23T17:06:54-07:00
Forum: Users
Topic: -fx return raw values?
Replies: 6
Views: 1492

Re: -fx return raw values?

Thanks for those, was just wondering if there was switch as it can be a bit laborious, with long fx statements.

With the precision of the value give by of u, will i get the exact value when I do 65535*u?
by TedBaker
2018-02-23T13:09:55-07:00
Forum: Users
Topic: -fx return raw values?
Replies: 6
Views: 1492

-fx return raw values?

Is there a simple way to use the -fx command with raw values rather than normalised, i.e. 0-1

for example

convert rose: -fx 'debug(u)' null

I would like to work with the raw 16bit value stored, or even its 8-bit equivalent, if possible.
by TedBaker
2017-12-27T07:00:01-07:00
Forum: Developers
Topic: Discussion About New Linear and Non-linear Gray
Replies: 8
Views: 6092

Re: Discussion About New sGray

Why not leave the legacy names as is: and introduce lGray, sGray and lRGB then you have Gray, RGB, sRGB as legacy values and new values of lGray for linear Gray, sGray for Gray using the sRGB gamma lRGB for linear RGB basically make it very clear what you mean with the new terms but support the old ...
by TedBaker
2017-12-26T08:27:16-07:00
Forum: Users
Topic: Removing noise from -fx minima.r and maxima.r calculations
Replies: 3
Views: 1270

Re: Removing noise from -fx minima.r and maxima.r calculations

How many pixels wide and high? The "-blur 0x7" will take time. Supplying a radius will reduce this, eg "-blur 21x7". Faster still, use integral images (see Windowed mean and standard deviation ), eg: convert in.tiff -process integim -process 'deintegim w 21x21' out.tiff some scans 3000px others 700...
by TedBaker
2017-12-26T06:01:50-07:00
Forum: Users
Topic: Removing noise from -fx minima.r and maxima.r calculations
Replies: 3
Views: 1270

Removing noise from -fx minima.r and maxima.r calculations

Analysing film scans I use the values of -fx minima.r, maxima.r, minima.g, maxima.g etc. Is there a fast (these are 50mb files or more), way of calculating these values but removing outliers, (which is noise either from the scanning process or scratches on the original) I am currently using -blur 0x...
by TedBaker
2017-11-27T13:40:47-07:00
Forum: Users
Topic: input Linear RGB specifiy output RGB or sRGB
Replies: 36
Views: 10978

Re: input Linear RGB specifiy output RGB or sRGB

Were are you seeing 6.9.9.24 beta? I am using https://github.com/ImageMagick/ImageMagick.git

I didn't see that tag, or issue etc
by TedBaker
2017-11-27T12:40:14-07:00
Forum: Users
Topic: input Linear RGB specifiy output RGB or sRGB
Replies: 36
Views: 10978

Re: input Linear RGB specifiy output RGB or sRGB

Did an issue/bug reported get created for this?
by TedBaker
2017-11-25T12:24:15-07:00
Forum: Users
Topic: Heap size larger than expected
Replies: 5
Views: 2076

Re: Heap size larger than expected

Thanks fred, I will upgrade at some point. My follow up was just offered as 'way around' the 'issue' by just allocating more memory, than ideal, for grayscale images only. I assume the default limit for memory is set at the physical limit, by increasing it to some sensible amount above the amount of...
by TedBaker
2017-11-24T19:26:55-07:00
Forum: Users
Topic: Heap size larger than expected
Replies: 5
Views: 2076

Re: Heap size larger than expected

Thanks, in which case it seems to make sense to increase the memory limit beyond the physical ram, I have 12G, and

identify -list resource shows Memory: 11.445GiB, changed them convert command too:

convert -limit 20G infile outfile

and no need to for any temporary files.
by TedBaker
2017-11-24T16:23:42-07:00
Forum: Users
Topic: Heap size larger than expected
Replies: 5
Views: 2076

Heap size larger than expected

I have the following 2.3905GB grayscale file. $ identify n10_757_a_full4800_exp1_001.tif n10_757_a_full4800_exp1_001.tif TIFF 27360x43680 27360x43680+0+0 16-bit Grayscale Gray 2.3905GB 0.010u 0:00.000 a simple rotate 90 results seems to require 8.9G? convert -define registry:temporary-path=. -debug ...
by TedBaker
2017-11-13T16:41:43-07:00
Forum: Users
Topic: input Linear RGB specifiy output RGB or sRGB
Replies: 36
Views: 10978

Re: input Linear RGB specifiy output RGB or sRGB

fmw42 wrote:
2017-11-13T14:04:51-07:00
See further updates in my example above.
Thanks fred again for you assistance!