With boost::gil, how do I get a gray8s view of a gray8 unsigned image or view -


using boost::gil how create view applies gray8 image or view , provides gray8s view?

what i'd expect:

  • for these 2 cases i'd expect each pixel value in view equal corresponding pixel value in source image minus 128

    signed_gray8s_view_t some_gray8s_view = signed_view(some_gray8_image); signed_gray8sc_view_t some_gray8s_view = signed_view(some_gray8c_image); 
  • for these 2 cases i'd expect each pixel value in view equal corresponding pixel value in source image (ie, no effect, identity mapping)

    signed_gray8s_view_t some_gray8s_view = signed_view(some_gray8s_image); signed_gray8sc_view_t some_gray8s_view = signed_view(some_gray8sc_image); 


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -