Question: function [ out , F ] = myhisteq ( in , L ) ; % % [ out , F ] = myhisteq ( in

function [out,F]=myhisteq(in,L);
%
%[out,F]=myhisteq(in,L);
%
% My histogram equalization function
% Takes an L level input image 'in'(must be integers)
% and maps it to an L Level output
% with an approximately flat histogram.
%
% out equalized image (L levels)
% F mapping function
% in input image (L levels, integer values)
% L # levels in input image
Hw2-P3: Run this code in Matlab after you write this function [out,F]=myhisteq(in,L);
Ca
load wva
test = wva(:,:,1);
hist(test(,100); figure;
image(test); colormap(gray(256)); axis image
test2=myhisteq(test,256);
figure; hist(test2(,100); figure;
image(test2); colormap(gray(256)); axis image
function [ out , F ] = myhisteq ( in , L ) ; % %

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!