this is our matlab code for image enhancement using power law at gamma=1.01,but we are getting error in function while compiling due to floating number(1.01).we are able to convert to verilog code using hdl coder at gamma=1 but not at gamma=1.01.help
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
%testbench_code %powerlawfor_gamma=1.01 close all; clear all; clc; b=imread('cam.jpeg'); [m,n]=size(b); n=max(m,n); b=imresize(b,[n,n]);
[m,n]=size(b);c=1;
gamma=1.01; for p = 1 : m for q = 1 : n img= b(p,q); if p < m && q < n I(p,q) = pix; end end end s=size(I); figure; imshow(I);
%function function pix=pwrlw(img,gamma,c) pix = c * img.^ gamma;
0 Kommentare
Antworten (1)
Bharath Venkataraman
am 28 Mär. 2018
Bearbeitet: Bharath Venkataraman
am 28 Mär. 2018
You can use the Lookup table implementation for the Gamma Corrector block. Here's an example of how to use the block.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!