opengl - Clamp to edge VS Clamp -



opengl - Clamp to edge VS Clamp -

i working on opencl project, trying implement gaussian filter. @ moment stuck @ cl_adressing_mode definition, don't difference between cl_address_clamp_to_edge , cl_address_clamp.

the definition of cl_addressing_mode states: addressing mode specifies when coordinate falls outside range of [0.0, 1.0](for normalized coordinates) or [0, dimension - 1](for non-normalized coordinates) still, doesn't specify parameters when apply convolution matrix image input.

the details of image samplers described in section 6.12.14.1 of opencl 1.2 specification. in particular, table 6.22 on page 295 has info after:

clk_address_clamp_to_edge – out-of-range image coordinates clamped extent.

clk_address_clamp – out-of-range image coordinates homecoming border colour.

the definition of 'border colour' in next section (it depends on channel order).

opengl image-processing opencl

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -