Generate CUDA Code for a Fog Rectification Algorithm
GPU Coder™ generates optimized CUDA® code from MATLAB® code for deep learning, embedded vision, and autonomous systems. The generated code calls optimized NVIDIA® CUDA libraries and can be integrated into your project as source code, static libraries, or dynamic libraries. It can also be used for prototyping on GPUs, such as the NVIDIA Tesla® and NVIDIA Tegra®.
This video shows an example of taking a foggy image as input and producing a defogged image. The image processing algorithm is a typical implementation of a fog rectification algorithm and has several stages, including dark channel estimation, anisotropic diffusion, inverse Koschmieder's law, and histogram stretching. It uses conv2, rgb2gray, and imhist functions. Once the code is generated, a MEX-file is created and is then executed back in the MATLAB environment where you will see a 5X speedup compared to running the algorithm on the CPU.
At this point, you can take the generated CUDA code and run it on any NVIDIA GPU, including the embedded Tegra GPUs.
Published: 31 Oct 2017
Featured Product
GPU Coder
Up Next:
Related Videos:
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)