From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 04 Oct 2014 15:04:25 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: how to read image in Ada? Date: Sat, 04 Oct 2014 16:04:37 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <1d5d2d61-9595-4571-9d4e-308bb19f0b8d@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.79.217.184 X-Trace: sv3-IvTu/8Fq4Aagax7ya5yq2Us1xJo9sc5pgEvsnfR143V/McHefvA9Elgr4+CE8ahZxuXZ27TEoSHYRhd!M5hIf7KU0BJRi/KBTz7BcTwKpVjcbNV6P1z3oIAFaUU8VKV4zkVbHBEVG9XLVpv5iI9Mul+Ubbbj!7/OgVvY7tj3wfHb1KSoI05ORYu2C X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2224 Xref: news.eternal-september.org comp.lang.ada:22088 Date: 2014-10-04T16:04:37-04:00 List-Id: On Fri, 3 Oct 2014 04:46:55 -0700 (PDT), Nahro Nadir 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 -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/