cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Doubt about values returned by read_imagef

The values returned by read_imagef are in the range 0 to 1 whereas the pixel intensity range is from 0 to 255... i want to do further processing on the intensity values to do Image Segmentation which is based only on the intensity values (Operations carried out would be like finding difference between two intensity values, sorting, finding minimum, shuffling etc). How to get these values in the range 0 to 255 in an integer form(for convenience)...? Can I just multiply every value with 255 or is there something else I need to do...?

0 Likes
1 Solution

Didn't you forget change size of memory pointer passed to clCreateImage()?

View solution in original post

0 Likes
15 Replies