Search found 30 matches
- 2018-05-03T10:20:55-07:00
- Forum: Users
- Topic: -depth operator has no effect
- Replies: 2
- Views: 3503
- 2018-05-03T09:47:11-07:00
- Forum: Users
- Topic: -depth operator has no effect
- Replies: 2
- Views: 3503
-depth operator has no effect
I am using a Q64 version of ImageMagick, and am trying to work with an image at 16-bit instead of 64-bit depth. At 64-bit depth, the pixel values span the 64-bit range (0 to 1.84E19); however, if I use `-depth 16` with the intention of rescaling the pixel values to the 16-bit range (0-65,535), I ...
- 2018-02-10T17:23:49-07:00
- Forum: Users
- Topic: log-scale histogram
- Replies: 7
- Views: 4990
Re: log-scale histogram
Thanks, I tried the command you posted and read the pointers. I still fail to obtain output, but I will try on my linux machine when I get the chance. Temporary files with the names plot_1_17538.mpc and plot_1_17538.cache (or similar) are created in the working directory while the program is running ...
- 2018-02-10T16:00:27-07:00
- Forum: Users
- Topic: log-scale histogram
- Replies: 7
- Views: 4990
Re: log-scale histogram
I wanted the log of the counts (ordinate). My apologies for omitting my system information: I am using 6.9.7-4 Q16 x86_64 on debian and 7.0.7-1 Q16 x86_64 2017-09-15 on macos, both running bash version 4. I found and tried your plot script on the latter system (which has gnuplot 5.2), but obtained ...
- 2018-02-10T14:56:30-07:00
- Forum: Users
- Topic: log-scale histogram
- Replies: 7
- Views: 4990
log-scale histogram
I am viewing histograms of grayscale images by means of the following command magick "$file" -define histogram:unique-colors=false histogram:miff:- | display - Are there any ImageMagick commands/options to log-scale the counts/frequencies? I would be OK with adding 1 or some other small value to ...
- 2017-11-23T16:03:58-07:00
- Forum: Bugs
- Topic: display-im6.q16: unexpected end-of-file on miff files
- Replies: 5
- Views: 7950
Re: display-im6.q16: unexpected end-of-file on miff files
I can confirm that the patch worked. Thanks again!
- 2017-11-23T13:42:25-07:00
- Forum: Bugs
- Topic: display-im6.q16: unexpected end-of-file on miff files
- Replies: 5
- Views: 7950
Re: display-im6.q16: unexpected end-of-file on miff files
Yes, it's a 64-bit tiff, so the majority of image viewers fail to open it. The resolution is 65 nm/px, expressed as cm^-1 (TiffTag RESUNIT_CENTIMETER = 3, https://www.awaresystems.be/imaging/tiff/tifftags/resolutionunit.html ). The resolution shouldn't matter to an image viewer. I'm not sure about ...
- 2017-11-23T13:17:45-07:00
- Forum: Bugs
- Topic: display-im6.q16: unexpected end-of-file on miff files
- Replies: 5
- Views: 7950
Re: display-im6.q16: unexpected end-of-file on miff files
That was very fast, thanks!
- 2017-11-23T12:29:55-07:00
- Forum: Bugs
- Topic: display-im6.q16: unexpected end-of-file on miff files
- Replies: 5
- Views: 7950
display-im6.q16: unexpected end-of-file on miff files
Conversion to miff fails on some images, such as this one: https://ufile.io/2v40w This works fine: convert a.tif -depth 8 -colorspace gray PNG:- | display - whereas this fails: convert a.tif -depth 8 -colorspace gray miff:- | display - The error is: display-im6.q16: unexpected end-of-file `/tmp ...
- 2017-09-18T21:22:21-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
Re: converting from floating point to integer
Thanks, I'll keep pfm and mpc in mind for future work with floating point data.
- 2017-09-18T19:14:23-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
Re: converting from floating point to integer
Oh, it actually must be a bug with `miff:` since `-depth 8 PNG8:` works just fine.
- 2017-09-18T19:12:37-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
Re: converting from floating point to integer
I see, maxima/minima works for both (+/- fx) while the non-fx version also accepts the abbreviated forms. Supposing that I have done some manipulation on the image myself, is it possible to reduce the bit depth afterwards without altering the image? For instance magick a.tif -fx "(u-0.1)/0.9" -level ...
- 2017-09-18T18:45:55-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
Re: converting from floating point to integer
Hmm, I wonder why it is read as 16-bit. It began as a double-precision matrix in matlab (originally acquired with a 16-bit ADC but then convolved with a Gaussian, making it no longer 16-bit) and I saved it using that software's libtiff API with the BitsPerSample tag set to 64). Could it be because ...
- 2017-09-18T16:51:16-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
Re: converting from floating point to integer
Here is an example image: http://s000.tinyupload.com/index.php?file_id=38010744925170768467 Unzip to recover the 64-bit tiff. I am using mac osx and debian v9. I could not get `identify -verbose` to output a histogram (just the summary statistics). Your `auto-level` command seems to do the job ...
- 2017-09-18T16:07:20-07:00
- Forum: Users
- Topic: converting from floating point to integer
- Replies: 10
- Views: 8920
converting from floating point to integer
I have some 64-bit IEEEFP tiff files. I can convert them to 8-bit unsigned integer (0-255) tiffs using Matlab, but I cannot seem to accomplish it using ImageMagick. $ identify <file> TIFF 144x149 144x149+0+0 64-bit Grayscale Gray 173050B 0.000u 0:00.000 $ magick <file> -depth 8 miff:- | identify ...