# يا أعضاء المهندس! ساعدوني

**URL:** <https://almohandes.org/t/%D9%8A%D8%A7-%D8%A3%D8%B9%D8%B6%D8%A7%D8%A1-%D8%A7%D9%84%D9%85%D9%87%D9%86%D8%AF%D8%B3-%D8%B3%D8%A7%D8%B9%D8%AF%D9%88%D9%86%D9%8A/14650>\
**Category:** برنامج الماتلاب\
**Created:** [14 مايو 2008، 11:07ص UTC](https://almohandes.org/t/%D9%8A%D8%A7-%D8%A3%D8%B9%D8%B6%D8%A7%D8%A1-%D8%A7%D9%84%D9%85%D9%87%D9%86%D8%AF%D8%B3-%D8%B3%D8%A7%D8%B9%D8%AF%D9%88%D9%86%D9%8A/14650 "2008-05-14T11:07:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://almohandes.org/uploads/default/original/3X/0/9/09f0459fb00cd1da72e640e541b6bc7ea9548fe8.png) [@system](https://almohandes.org/u/system)\
**Post date:** [14 مايو 2008، 11:07ص UTC](https://almohandes.org/t/%D9%8A%D8%A7-%D8%A3%D8%B9%D8%B6%D8%A7%D8%A1-%D8%A7%D9%84%D9%85%D9%87%D9%86%D8%AF%D8%B3-%D8%B3%D8%A7%D8%B9%D8%AF%D9%88%D9%86%D9%8A/14650/1 "2008-05-14T11:07:07Z")

</div>

السلام عليكم ورحمة الله وبركاته  
اريد معرفة الفرق بين الصور color والصور الgray  
يعني شرط يختبر الصوره هل هي ملونه او رماديه ؟؟؟؟؟؟؟؟؟؟؟  
ارجو افادتي في اسرع وقت ولكم جزيل الشكر 🙂

---

<div class="post-metadata">

**Author:** ![ahmedeldeep](https://almohandes.org/user_avatar/almohandes.org/ahmedeldeep/32/6086_2.png) [@ahmedeldeep](https://almohandes.org/u/ahmedeldeep)\
**Post date:** [14 مايو 2008، 11:48ص UTC](https://almohandes.org/t/%D9%8A%D8%A7-%D8%A3%D8%B9%D8%B6%D8%A7%D8%A1-%D8%A7%D9%84%D9%85%D9%87%D9%86%D8%AF%D8%B3-%D8%B3%D8%A7%D8%B9%D8%AF%D9%88%D9%86%D9%8A/14650/2 "2008-05-14T11:48:31Z")

</div>

لمعرفة نوع الصورة فلابد اولا من عرضها مثلا نستخدم الامر الاتى

```auto
h = imshow(image_file)

```

ونلاحظ ان الصورة اصبح لها object على سبيل المثال كما فى المثال السابق h  
هذا ال object يحتوى على جميع خصائص الصورة وهى عبارة عن classes  
والكلاس المسئول عن تحديد نوع الصورة هو  
CDataMapping

مثلا لارجاع نوع الصورة نفذ الامر الاتى

```auto
get(h, ‘CDataMapping’)

```

وتكون الاجابة  
scaled  
او  
gray  
truecolor  
binary
