comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: how to read image in Ada?
Date: Sat, 04 Oct 2014 16:04:37 -0400
Date: 2014-10-04T16:04:37-04:00	[thread overview]
Message-ID: <gak03a16t6ahlaeojrudko244csjnt5959@4ax.com> (raw)
In-Reply-To: 1d5d2d61-9595-4571-9d4e-308bb19f0b8d@googlegroups.com

On Fri, 3 Oct 2014 04:46:55 -0700 (PDT), Nahro Nadir <nahro.h.n@gmail.com>
declaimed the following:

>I'm new in Ada programming language, I want to read and manipulate images in Ada without binding other libraries like opencv. Is there any way to read images in Ada? Or convert it to pixel values (RGB) especially bitmap images.

	Well, technically, they are all just binary files...

	The problem is, each format encodes the data in a different way, and
you'd need to read the specification for those formats and write code that
translates them to whatever you want...

	There is a big difference between a format using RLE vs JPEG vs ILBM.
(The Amiga native graphics were bit-plane oriented, so one had a matrix of
all the least-significant bits, followed by a matrix of next significant
bits, etc. until the most-significant bits; other formats have all bits for
one pixel packed as a single item)

	Or use a library that someone else has already created to do the same
thing <G>

	
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

  parent reply	other threads:[~2014-10-04 20:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 11:46 how to read image in Ada? Nahro Nadir
2014-10-03 12:44 ` Anatoly Chernyshev
2014-10-04 20:04 ` Dennis Lee Bieber [this message]
2014-10-06  7:36   ` Nahro Nadir
2014-10-06  8:30     ` Simon Wright
2014-10-06 12:16       ` Nahro Nadir
2014-10-06  7:48 ` gautier_niouzes
2014-10-06 12:19   ` Nahro Nadir
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox