# Image type for an ITK image from numpy array

**URL:** <https://discourse.itk.org/t/image-type-for-an-itk-image-from-numpy-array/2348>\
**Category:** Beginner Questions\
**Created:** [October 24, 2019, 6:13pm UTC](https://discourse.itk.org/t/image-type-for-an-itk-image-from-numpy-array/2348 "2019-10-24T18:13:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [October 24, 2019, 7:42pm UTC](https://discourse.itk.org/t/image-type-for-an-itk-image-from-numpy-array/2348/2 "2019-10-24T19:42:52Z")

</div>

Maybe `itkImageRGBUC3` is not wrapped by default, so ITK implicitly converts it to scalar?

**EDIT:** the conversion RGB-\>Scalar usually uses luminance, so in this case you don’t need `RGBToLuminanceImageFilter`.

Also, does `np.ascontiguousarray(np_image)` give an RGB image?

---

_[View the full topic](https://discourse.itk.org/t/image-type-for-an-itk-image-from-numpy-array/2348)._
