# Image Reading and Writing in GNU Radio

**URL:** <https://www.ruby-forum.com/t/image-reading-and-writing-in-gnu-radio/231232>\
**Category:** GNU Radio\
**Created:** [July 29, 2014, 4:10am UTC](https://www.ruby-forum.com/t/image-reading-and-writing-in-gnu-radio/231232 "2014-07-29T04:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 29, 2014, 4:10am UTC](https://www.ruby-forum.com/t/image-reading-and-writing-in-gnu-radio/231232/1 "2014-07-29T04:10:36Z")

</div>

Dear all,  
I want to transmit an image over wireless link, so I need two blocks: +  
one for reading grayscale image and giving out a bit stream+ the other  
one take a bit stream as input and rebuild the image  
Is there any completed toolbox containing blocks employing these  
functions? If none, could you give me some clue for writing my necessary  
blocks?  
Thanks in advance,Hoang

Hoang Ngo-KhacVietnam National University, Hanoi (VNU-H) - Univ. of  
Engineering and Technology (UET)Faculty of Electronics and  
Telecommunications (FET)Alternative email: removed\_email\_address@domain.invalid,  
removed\_email\_address@domain.invalid: +84.163.682.7874

---

<div class="post-metadata">

**Author:** ![Hoang\_Ngo-Khac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/2acd7d/32.png) [@Hoang\_Ngo-Khac](https://www.ruby-forum.com/u/Hoang_Ngo-Khac)\
**Post date:** [July 29, 2014, 10:28am UTC](https://www.ruby-forum.com/t/image-reading-and-writing-in-gnu-radio/231232/2 "2014-07-29T10:28:39Z")

</div>

On 07/29/2014 04:08 AM, Hoang Ngo-Khac wrote:

> Dear all,
> 
> I want to transmit an image over wireless link, so I need two blocks:
> 
> - one for reading grayscale image and giving out a bit stream

I guess if you save the image in a non-compressed, grayscale format this  
should come for free.

> - the other one take a bit stream as input and rebuild the image

There is no block for this. If your application doesn’t have to be super  
high speed, I recommend using matplotlib and Python blocks. Using those  
is ridiculously easy (makes Matlab look hard).

Otherwise you’ll have to build something using Qwt, which is harder  
unless you’re really good at Qt.

M
