Van Hateren Data Set conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pcicales
Posts: 5
Joined: 2015-08-24T15:06:32-07:00
Authentication code: 1151

Van Hateren Data Set conversion

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Van Hateren Data Set conversion

Post 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?
snibgo's IM pages: im.snibgo.com
pcicales
Posts: 5
Joined: 2015-08-24T15:06:32-07:00
Authentication code: 1151

Re: Van Hateren Data Set conversion

Post by pcicales »

Where do I find "dir*.imc"
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Van Hateren Data Set conversion

Post 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".
snibgo's IM pages: im.snibgo.com
pcicales
Posts: 5
Joined: 2015-08-24T15:06:32-07:00
Authentication code: 1151

Re: Van Hateren Data Set conversion

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Van Hateren Data Set conversion

Post by snibgo »

So that's the problem. The file isn't there.
snibgo's IM pages: im.snibgo.com
pcicales
Posts: 5
Joined: 2015-08-24T15:06:32-07:00
Authentication code: 1151

Re: Van Hateren Data Set conversion

Post by pcicales »

Wow. Thank you for your help. I must be lacking too much sleep.
pcicales
Posts: 5
Joined: 2015-08-24T15:06:32-07:00
Authentication code: 1151

Re: Van Hateren Data Set conversion

Post 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.
Post Reply