Calculating entropy for MRI images

Hi
from process.ImageStatistic, we can compete kurtosis and skewness, so my question is it possible to define entropy in this code , and compete the code again including entropy.
please see below link for the plugin.