Comparing Image wih histogram
Mostra commenti meno recenti
hi, I have a histgram, I want to travel through each patch of image and compare with histogram, if the patchsize is greater than threshold value make those pixel white else black. to get Patches I am using 'blockproc' I dont think whether Or not it could work for this situation.
fun = @(blk) std2(blk.data) * ones(size(blk.data));
imblk = blockproc(im, [patchsz patchsz], fun);
[m1 n1 nc] = size(imblk);
but I Think this would Also effect the Image Patches that is not needed, Just Want travel through Each patch in its original state, and if Image Pach Size > threshold(histogram) Set that Patch White else Black,
Regards
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Neighborhood and Block Processing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!