Fun numpy things
Diff two images
diff_image = abs(prediction_mask - true_mask)
Count pixels that exactly match between two images
diff_image = abs(prediction_mask - true_mask)
matches = 1.0 * (diff_image == 0)
matches_count = np.sum(matches)
Count prediction pixels that do not match truth-mask pixels
diff_image = abs(prediction_mask - true_mask)
unpaired_pred_msk = 1.0 * (prediction_mask>0) * (diff_img>0)
un_matched_pred_count = np.sum(unpaired_pred_msk)
-
Recent
- NVIDIA 2D Image and Signal Performance Primitives (NPP)
- Calling Cuda functions from C#
- create tensorflow data set from a list of numpy images
- Example implementation of nppiResize_32f_C1R_Ctx()
- Save Framos IMX 253 images as Jpeg on NVIDIA Jetson
- Fun numpy things
- So what is numpy Matrix Multiplication?
- Numpy Dot Product of Vectors
-
Links
-
Archives
- May 2023 (3)
- March 2023 (2)
- January 2022 (1)
- October 2021 (1)
- September 2021 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS