# reading an image through cuda library

**URL:** <https://forums.developer.nvidia.com/t/reading-an-image-through-cuda-library/13857>\
**Category:** CUDA Programming and Performance\
**Created:** [December 17, 2009, 4:57am UTC](https://forums.developer.nvidia.com/t/reading-an-image-through-cuda-library/13857 "2009-12-17T04:57:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![munna](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@munna](https://forums.developer.nvidia.com/u/munna)\
**Post date:** [December 17, 2009, 4:57am UTC](https://forums.developer.nvidia.com/t/reading-an-image-through-cuda-library/13857/1 "2009-12-17T04:57:25Z")

</div>

hi ,  
currently i am working on CUDA by parallelizing some image processing applications in linux platform .  
i am reading the image matrix through file operation. and i am getting the image matrix from the matlab in the text file format.  
can i directly read an image by using some cuda library?or is there any way to read the image through the linux command  
how can i get the matrix from the corresponding image.  
if any solution is there ,plz help me.

---

<div class="post-metadata">

**Author:** ![cgorac](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cgorac](https://forums.developer.nvidia.com/u/cgorac)\
**Post date:** [December 17, 2009, 7:56am UTC](https://forums.developer.nvidia.com/t/reading-an-image-through-cuda-library/13857/2 "2009-12-17T07:56:03Z")

</div>

You [already](http://forums.nvidia.com/index.php?showtopic=152047&st=0&p=957485&#entry957485) asked same question, and I’ll just repeat my answer: CUDA doesn’t include any functions to read image files from disk so, depending of the format of images you are processing, either you’ll have to write corresponding code by yourself, or you’d have to employ one of numerous publicly available image reading/writing libraries.
