Re: extract of an image (array)
- From: andy2O@xxxxxxxxxxx (andy2o)
- Date: 8 Apr 2005 07:16:51 -0700
christina.goerner@xxxxxx (Crissy) wrote in message news:<1ace9f06.0504071016.4cfecebc@xxxxxxxxxxxxxxxxxx>...
>
> array_europa = array_bild(500:2500, 1:800)
>
[snip]
> ----------------------------------------------------------------------------
>
> Thanks to everyone!!!!
>
> Crissy
Oh! So you you *only* want to crop the image, and not do any data
processing?
Then why use Fortran at all when a graphics program such as the *free*
ImageMagick can do this with an easy one line command at the command
line? I think Fortran is the wrong tool to choose here.
Image Magick is often installed by default on Linux machines, and it's
available for Linux, Unix and Windows. Most of its useful actions are
done using the "convert" command at the command line prompt. See
http://www.imagemagick.org/script/index.php
for details (particularly, follow the Command Line Tools -> "-crop"
links.).
I think you just need to type the following command at the prompt to
do what you want:
convert bigimagefile.pgm -crop 2000x800+500+0 newsmallerimagefile.pgm
If you have lots of files to do, it is of course very easy to write a
shell script to perform this command on them all. If you want help
with that (on Linux - I don't know how to write scripts for Windows!)
just post a message for me here and I'll then get in touch about it
off the list, as it would not really be on topic for c-l-f.
Hope that helps,
andy
.
- Follow-Ups:
- Re: extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- References:
- extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Michael Metcalf
- Re: extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Ken Fairfield
- Re: extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Michael Metcalf
- Re: extract of an image (array)
- From: Crissy
- extract of an image (array)
- Prev by Date: Re: windows ifort on cygwin
- Next by Date: Re: windows ifort on cygwin
- Previous by thread: Re: extract of an image (array)
- Next by thread: Re: extract of an image (array)
- Index(es):
Relevant Pages
|
|