You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i planning to Load 16bpp grayscale bitmap on windows. i successfully change mat to WriteableBitmap by using WriteableBitmapConverter method. But when i check between on original and saved bitmap in QGIS, something changed in STATISTICS.
Something changed in STATISTICS. could you explain reason, and what i have to do to fix this situation.
Environment
Write your environment.
What did you do when you faced the problem?
Write here
Example code:
string fileName = $"C:\\Users\\User\\Desktop\\grayscale\\C1_20240611014916_17892_00672307_L2G_R.tif"; // grayscale
Mat src = new Mat(fileName, ImreadModes.Unchanged);
WriteableBitmap bmp = OpenCvSharp.WpfExtensions.WriteableBitmapConverter.ToWriteableBitmap(src);
SaveBitmap(bmp, $"C:\\Users\\User\\Desktop\\C#Study\\aaa\\test1.jpg");
Output:
here is original
![original](https://github.com/user-attachments/assets/064ee89b-da96-48c1-9dd5-5582cea8e671)
and that is Converted WriteableBitmap. i saved it by JPG.
![test1](https://github.com/user-attachments/assets/cedb4688-db05-451a-8f75-8e09979f9cf9)
What did you intend to be?
The text was updated successfully, but these errors were encountered:
Summary of your issue
i planning to Load 16bpp grayscale bitmap on windows. i successfully change mat to WriteableBitmap by using WriteableBitmapConverter method. But when i check between on original and saved bitmap in QGIS, something changed in STATISTICS.
Something changed in STATISTICS. could you explain reason, and what i have to do to fix this situation.
Environment
Write your environment.
What did you do when you faced the problem?
Write here
Example code:
Output:
What did you intend to be?
The text was updated successfully, but these errors were encountered: