Page 1 of 1

Van Hateren Data Set conversion

Posted: 2015-08-24T15:26:16-07:00
by pcicales
I am having trouble converting the van hateren dataset files (http://bethgelab.org/datasets/vanhateren/) to a file type compatible with Experiment Builder (http://www.sr-research.com/eb.html). On the first website, there is a section discussing the line of code that needs to be used to convert this file type to a more convenient and manipulable type. I proceeded as follows in the command prompt:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Owner>convert -size 1536x1024 -depth 16 gray:imk00001.imc imk00001.fits

convert.exe: unable to open image `imk00001.imc': No such file or directory @ er
ror/blob.c/OpenBlob/2695.
convert.exe: no images defined `imk00001.fits' @ error/convert.c/ConvertImageCom
mand/3230.


and then,

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Owner>convert -size 1536x1024 -depth 16 -endian MSB gray:imk00001.imc i
mk00001.fits
convert.exe: unable to open image `imk00001.imc': No such file or directory @ er
ror/blob.c/OpenBlob/2695.
convert.exe: no images defined `imk00001.fits' @ error/convert.c/ConvertImageCom
mand/3230.


Please remember that I am new to Imagemagick and am solely using it to convert these images to a file type that I can use. Thank you in advance for your help.

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T15:34:12-07:00
by snibgo
pcicales wrote:`imk00001.imc': No such file or directory
This means it can't find the file. It probably isn't there. What does "dir *.imc" say?

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T15:36:11-07:00
by pcicales
Where do I find "dir*.imc"

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T15:50:18-07:00
by snibgo
It is a command that you type, at the same place you typed "convert ...". It will list the files with the extension "imc".

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T16:01:35-07:00
by pcicales
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Owner>dir *.imc
Volume in drive C has no label.
Volume Serial Number is C83A-C3CF

Directory of C:\Users\Owner

File Not Found

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T16:12:11-07:00
by snibgo
So that's the problem. The file isn't there.

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T18:31:19-07:00
by pcicales
Wow. Thank you for your help. I must be lacking too much sleep.

Re: Van Hateren Data Set conversion

Posted: 2015-08-24T18:32:22-07:00
by pcicales
One more question. There are over 4000 files. Is there a way to convert them all at once? They all have similar titles and are numbered in order.