Please, help me understand working of this sigmoid function
Show older comments
- Ixy2 =ImVar(S,1); %variance of 3*3 neighbour
- for k = 1:D
- minDd = min(min(Ixy2(:,:,k)));
- meanDd = mean(mean(Ixy2(:,:,k)));
- alpha = meanDd;
- kk = log(0.01)/(minDd-alpha);
- u(:,:,k) = 1-1./(1+exp(kk*(Ixy2(:,:,k)-alpha))); %weight calculated with Sigmoid functionu,:,:,k
- end
I'm confused that whats happening after line four
2 Comments
Image Analyst
on 14 Jan 2019
They're just creating temporary variables alpha and kk because otherwise the equation in line 7 would be super confusing and hard to follow.
Fatima Rashid
on 14 Jan 2019
Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!