[GIL] Image of doubles
I need an image type (and view) that has doubles for pixels. I only found a type with floats. How can I do that? -- View this message in context: http://www.nabble.com/-GIL--Image-of-doubles-tp19607063p19607063.html Sent from the Boost - Users mailing list archive at Nabble.com.
Sorry for the late reply but someone hijacked my account sunday night
and I couldn't send any emails on Monday. :-(
To your question:
This is very easy in gil. I don't know what color space you're in but
for a single channel image you can define the image type by:
typedef pixel< double, gray_layout_t > gray64f_pixel_t;
typedef image< gray64f_pixel_t, false > gray64f_image_t;
typedef image< gray64f_pixel_t, true > gray64f_planar_image_t;
Let me know if you have more questions,
Christian
On Mon, Sep 22, 2008 at 8:32 AM, Brice Rivé
I need an image type (and view) that has doubles for pixels. I only found a type with floats. How can I do that? -- View this message in context: http://www.nabble.com/-GIL--Image-of-doubles-tp19607063p19607063.html Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks Christian, I just want to store doubles that are the result of computations, no color space (gray values). Here's what I ended up doing: typedef double bits64f; GIL_DEFINE_BASE_TYPEDEFS(64f,gray) which is probably overkill. I'll try what you suggested (without the planar version) Thanks again, Brice. Christian Henning wrote:
This is very easy in gil. I don't know what color space you're in but for a single channel image you can define the image type by:
typedef pixel< double, gray_layout_t > gray64f_pixel_t; typedef image< gray64f_pixel_t, false > gray64f_image_t; typedef image< gray64f_pixel_t, true > gray64f_planar_image_t;
-- View this message in context: http://www.nabble.com/-GIL--Image-of-doubles-tp19607063p19629534.html Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
Brice Rivé
-
Christian Henning