plz help me to write code for this formula

4 Comments

What is I? matrix or constant?
Usually when people ask to 'help me to...' it means you have done something and want people to help you make it correct rather than just a 'Please do it all for me' question.
As formulae go that one looks very easy to implement. what part of it is causing problems?
for rgb image Normalization i am trying to use this Normalization formula but there is error how i cam implement it on my rgb image
i=imread('05.jpg'); >> alpha=mean( i ); beta=std(double(i));
(0 - 1) * (1/(1+exp((-1-beta)/alpha)) + 1);
alpha and beta will be vectors with that formulation.
You would need to use
alpha = mean( double( i(:) ) );
beta = std( double( i(:) );
to get scalar values for these.

Answers (0)

This question is closed.

Asked:

on 9 Oct 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!