Is it possible perform RMSE and SSIM in different size image?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Diah Junaidi
el 31 de Jul. de 2019
Comentada: Diah Junaidi
el 1 de Ag. de 2019
Hi, I wanna obtain RMSE and SSIM in different size image cause the images I used cannot be equalized in size. I attached those images.
0 comentarios
Respuesta aceptada
Walter Roberson
el 31 de Jul. de 2019
No, those measurements cannot be computed for images that are different sizes.
You would want to trim out the irrelevant borders and then imresize to have them match sizes. It might make sense to resize to a consistent size rather than to the larger or smaller size.
12 comentarios
Walter Roberson
el 1 de Ag. de 2019
pix_used = any(YourImage,3);
col_used = any(pix_used,1);
row_used = any(pix_used,2);
first_col = find(col_used,1);
last_col = find(col_used,1,'last');
first_row = find(row_used,1);
last_row = find(row_used,1,'last');
cropped_image = YourImage(first_row:last_row, first_col:last_col,:);
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!