Comments (14)
I've reproduced all steps and could not reproduce the issue, sorry.
Not sure what is going wrong.
You are using option --cache
. Maybe something get wrong one time, and now a broken image is stored in cache.
Could you please remove cache.imfuse
and try again?
I've made an update that gives some more messages about the progress.
Also it helps to run with --verbose
to see in detail at which point the progress stops.
from microscopy-tools.
You are using option
--cache
. Maybe something get wrong one time, and now a broken image is stored in cache.
Could you please removecache.imfuse
and try again?
Ok, now there is no folder made by imfuse.
I've made an update that gives some more messages about the progress.
Also it helps to run with--verbose
to see in detail at which point the progress stops.
-
got the newest version (imfuse v0.6.1-beta)
-
starting imfuse: imfuse -o imfu_diff_pc20.tif --diffstat --verbose pc20-aligned_C_m_c40_order_00??.tif
-
It does'nt work: Error while flattening images
Error while flattening images.txt -
I took only 3 files for input, but the result was the same. "magick: insufficient image data in file `/mnt/Daten/holger/Fotos/stacks/20210203_Motte4_Kopf_Mikroskopobj/cache.imfuse/montage-diffstat.8f1e91.tif' @ error/tiff.c/ReadTIFFImage/1774.
imfuse ERROR: Error while flattening images"
Here are the files:
pc20-aligned_C_m_c40_order_000x.zip
from microscopy-tools.
Likely the error depends on the version of ImageMagick.
I have three versions available:
$ magick --version
Version: ImageMagick 7.0.10-13 Q16 x86_64 2020-05-17 https://imagemagick.org
$ convert --version
Version: ImageMagick 6.9.11-24 Q16 x86_64 20200718 https://imagemagick.org
$ convert --version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
It runs well with v7.0.10. I got a different error than yours with v6.9.11. (fixed now)
What is your version?
I assume that this command creating a transparent image is failing:
nice convert -size 899x597 xc:blue -transparent blue -type TrueColorAlpha +repage -quality 100% -compress lzw montage.tif
Could you check this command and its resulting image? Maybe the -compress lzw
option fails and should be omitted.
Edit:
On the other hand, why does imfuse succeed with non-resized images? Where is the difference?
Just in case, I've added a note containing the command when transparent images are created.
The one with montage
in the file name would be the failing image.
from microscopy-tools.
Likely the error depends on the version of ImageMagick.
I have three versions available:$ magick --version Version: ImageMagick 7.0.10-13 Q16 x86_64 2020-05-17 https://imagemagick.org $ convert --version Version: ImageMagick 6.9.11-24 Q16 x86_64 20200718 https://imagemagick.org $ convert --version Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
It runs well with v7.0.10. I got a different error than yours with v6.9.11. (fixed now)
What is your version?
I have:
~> magick --version
Version: ImageMagick 7.0.7-34 Q16 x86_64 20180520
~> convert --version
Version: ImageMagick 7.0.7-34 Q16 x86_64 20180520
In an other openSUSE repository I found version 7.0.10.53, but have not installed so far.
from microscopy-tools.
You have a quite recent version, ok. That should make a bug or different syntax in ImageMagick less likely.
I've changed the command to generate the transparent image a bit, and also added some verbose output around the point where the error occurs. Could you please try again?
from microscopy-tools.
nice convert -size 899x597 xc:blue -transparent blue -type TrueColorAlpha +repage -quality 100% -compress lzw montage.tif
Could you check this command and its resulting image? Maybe the `-compress lzw` option fails and should be omitted.
I'm not familiar with convert an it's args, but here is what I done:
nice convert aligned_C_m_c40_order_0001.tif -size 899x597 xc:blue -transparent blue -type TrueColorAlpha +repage -quality 100% -compress lzw montage.tif
It shows the known warnings because of exif data. But it works as far as I can see.
nice convert pc20-aligned_C_m_c40_order_00??.tif -size 899x597 xc:blue -transparent blue -type TrueColorAlpha +repage -quality 100% -compress lzw montage.tif
No exif data = no warnings. It works.
But I don't know what the result (montage.tif) should look like.
from microscopy-tools.
I've changed the command to generate the transparent image a bit, and also added some verbose output around the point where the error occurs. Could you please try again?
- starting imfuse using the shrunk images
imfuse -o imfu_morphologyr3_pc20_aligned_C_m_c40_order.tif --verbose --morphology=r3 pc20-aligned_C_m_c40_order_00??.tif
No errors, no warnings. And the result is ok too.
from microscopy-tools.
No errors, no warnings. And the result is ok too.
So this seems to be fixed? Great!
Thanks for your patience. I am grateful to get some feedback to the project.
from microscopy-tools.
So this seems to be fixed? Great!
Yes!
Thanks for your patience.
Patience? You are very fast in bug fixing.
from microscopy-tools.
I got it again:
~>imfuse --verbose --dog --less --close --finalblur=w47,s2 --alpha --threshold=50 --bg=enfuse aligned_C_c60_m_order_00??.tif
imfuse: --bg: enfuse enfuse
...
imfuse: Montage 27/64. Duration: 00:13:03; ETA: 00:17:53
magick: no images for write '-write' 'mpr:lessthanmax' at CLI arg 60 @ error/operation.c/CLINoImageOperator/4882.
imfuse ERROR: Error while cutting images
imfuse: Montage 28/64. Duration: 00:13:09; ETA: 00:16:54
Error while cutting images_20210218.zip
imfuse v0.6.7.0-beta
Version: ImageMagick 7.0.10-53 Q16 x86_64
from microscopy-tools.
Quite odd.
It happend in step 27/64, so the command already succeeded several times before failing.
Do you still have the cache.imfuse
folder?
Please check image /mnt/Daten/holger/Fotos/stacks/20210207_Fliege_Kopf_gelb_Mikroskopobj/cache.imfuse/lessthanmax.tif
. This is the image loaded for the failed -write mpr:lessthanmax
command.
from microscopy-tools.
t happend in step 27/64, so the command already succeeded several times before failing.
Ah, perhaps that's the problem. I started imfuse two times in the same folder.
If there can be only one cache.imfuse
folder, ...
Do you still have the cache.imfuse folder?
No.
There is one folder cache.imfuse
, but it belongs to an other process of imfuse.
from microscopy-tools.
Ok, yes, that it is.
If you want to run a second instance, you can specify another cache folder, e.g. --cache=cache2
.
from microscopy-tools.
you can specify another cache folder, e.g.
--cache=cache2
.
Ok, I try it.
from microscopy-tools.
Related Issues (17)
- Discussion about movement detection HOT 1
- imfuse: Finding good parameters: fly on yellow background HOT 71
- imfuse: possible --background HOT 5
- imfuse: improve workflow HOT 6
- imfuse: magick: unable to open image HOT 4
- imfuse: foreground - background (ant) HOT 54
- talk HOT 27
- Beginner guide for dummies? HOT 5
- Wiki: Examples and workflow
- Error: Zeile 455: Partimagelist ist nicht gesetzt. HOT 13
- imfuse: finding good parameters for focus stacking HOT 19
- imfuse: exif meta data transfer HOT 8
- imfuse: Error while flattening images HOT 3
- imfuse: cachfile remaining HOT 2
- mask file remaining HOT 1
- imfuse: effects of --finalalpha arguments HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microscopy-tools.