Multifocus image fusion using random forest and hidden Markov model