{"id":2209,"date":"2010-12-25T21:38:09","date_gmt":"2010-12-25T21:38:09","guid":{"rendered":"http:\/\/hgpu.org\/?p=2209"},"modified":"2010-12-25T21:38:09","modified_gmt":"2010-12-25T21:38:09","slug":"cpu-smp-and-gpu-implementations-of-nohalo-level-1-a-fast-co-convex-antialiasing-image-resampler","status":"publish","type":"post","link":"https:\/\/hgpu.org\/?p=2209","title":{"rendered":"CPU, SMP and GPU implementations of Nohalo level 1, a fast co-convex antialiasing image resampler"},"content":{"rendered":"<p>This article introduces Nohalo level 1 (&#8220;Nohalo&#8221;), the simplest member of a family of image resamplers which straighten diagonal interfaces without adding noticeable nonlinear artifacts. Nohalo is interpolatory, co-monotone, co-convex, antialiasing, local average preserving, continuous, and exact on linears. Like many edge-enhancing methods, Nohalo has two main stages: first, nonlinear interpolation is used to create a double-density version of the original image; this double-density image is then resampled with bilinear interpolation. Nohalo is especially suited for GPU computing because the nonlinear slopes can be computed once and stored in a low bit-depth texture without rounding error, because the final bilinear stage can be performed in hardware, and because monotonicity allows full use of the texture&#8217;s dynamic range. Demand-driven implementations for CPU&#8217;s and SMPs are more complex, and require extra work to fix bottlenecks. Efficient implementations of the minmod function are key to performance. Three implementations of Nohalo are presented and bench-marked: a CPU version in C for the graphics library GEGL, an SMP version in C++ for the graphics library VIPS and a GPU version in HLSL for DirectX. The GPU implementation is branch-free thanks to the discovery of a simple formula for the pixel values of the double density image. Branches are eliminated in the demand-driven C\/C++ implementations by reflecting, if needed, Nohalo&#8217;s 12-point stencil with pointer shifts. Overall, Nohalo is not much slower than standard bicubic resamplers. Compared to twenty-three alternatives in tests involving the re-enlargement of images downsampled with nearest neighbour, Nohalo gets the best PSNRs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article introduces Nohalo level 1 (&#8220;Nohalo&#8221;), the simplest member of a family of image resamplers which straighten diagonal interfaces without adding noticeable nonlinear artifacts. Nohalo is interpolatory, co-monotone, co-convex, antialiasing, local average preserving, continuous, and exact on linears. Like many edge-enhancing methods, Nohalo has two main stages: first, nonlinear interpolation is used to create [&hellip;]<\/p>\n","protected":false},"author":351,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[73,33,3],"tags":[7,936,1791,480,114,333,1786,20,317,395,554,311],"class_list":["post-2209","post","type-post","status-publish","format-standard","hentry","category-computer-vision","category-image-processing","category-paper","tag-ati","tag-ati-mobility-radeon-x1400","tag-computer-vision","tag-directx","tag-hlsl","tag-image-generation","tag-image-processing","tag-nvidia","tag-nvidia-geforce-6800","tag-nvidia-geforce-8600-gt","tag-nvidia-geforce-9800-gt","tag-nvidia-geforce-9800-gx2"],"views":2221,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts\/2209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/users\/351"}],"replies":[{"embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2209"}],"version-history":[{"count":0,"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts\/2209\/revisions"}],"wp:attachment":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}