verify which one is the correct one to calculate
Mostrar comentarios más antiguos
i tried both of those instruction to calculate variance of each blob in one image, both leads to different results, i dont know wich one is the correct one can you please help me
for i=1: numofblobs
croppedImage = frameRGB(bbox(i, 2):bbox(i, 2)+bbox(i, 4)-1, bbox(i, 1):bbox(i, 1)+bbox(i, 3)-1, :);
blobVariance(i) = var(double(croppedImage(:)));
end
OR
for i=1: numofblobs
blobVariance(i) = var(double(bbox(i,:)))
end
where
bbox = step(blobAnalysis, binaryimage);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Detect and Segment Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!