我目前正在开发一种算法来确定细菌簇的(明场)显微镜图像的质心位置。这是目前图像处理中的一个主要未解决的问题。
这个问题是对:Python/OpenCV — 匹配两个图像中细菌的质心点的后续问题。
目前,该算法对稀疏、间隔开的细菌有效。然而,当细菌聚集在一起时,它变得完全无效。
在这些图像中,请注意细菌质心是如何有效定位的。
然而,当细菌聚集在不同的水平时,算法就会失败。
原始图像
我想优化我当前的算法,使其对这些类型的图像更加健壮。这是我正在运行的程序。
import cv2
import numpy as np
import os
kernel = np.array([[0, 0, 1, 0, 0],
[0, 1, 1, 1, 0],
[1, 1, 1, 1, 1],
[0, 1, 1, 1, 0],
[0, 0, 1, 0, 0]], dtype=np.uint8)
def …Run Code Online (Sandbox Code Playgroud) 我想写一个数据转换器工具。我需要分析文件中的比特流以显示 3D 体积的 2D 横截面。
我试图查看的数据集可以在这里找到:https : //figshare.com/articles/SSOCT_test_dataset_for_OCTproZ/12356705。
文件名为:burned_wood_with_tape_1664x512x256_12bit.raw (832 MB)
非常感谢一些指导。如果我能得到一些软件来使用数据转换将数据集显示为图像,我愿意奖励。
由于我对这个概念完全陌生,因此我没有可以显示此问题的代码。但是,这里有一些我尝试使用来自 SO 其他问题的灵感的东西:
import rawpy
import imageio
path = "Datasets/burned_wood_with_tape_1664x512x256_12bit.raw"
for item in path:
item_path = path + item
raw = rawpy.imread(item_path)
rgb = raw.postprocess()
rawpy.imshow(rgb)
Run Code Online (Sandbox Code Playgroud) Unity 上的游戏可以运行,但当我将其导出到 Android 时,它就停止运行了。当我在终端中构建并运行时,出现以下错误:
2020/10/30 14:09:09.050 20499 20540 Error Unity MissingMethodException: Default constructor not found for type UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1[[UnityEngine.AddressableAssets.Initialization.ResourceManagerRuntimeData, Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]
2020/10/30 14:09:09.050 20499 20540 Error Unity at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0
2020/10/30 14:09:09.050 20499 20540 Error Unity at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0
2020/10/30 14:09:09.050 20499 20540 Error Unity at UnityEngine.ResourceManagement.Util.LRUCacheAllocationStrategy.New (System.Type type, System.Int32 typeHash) [0x00000] in <00000000000000000000000000000000>:0
2020/10/30 14:09:09.050 20499 20540 Error Unity at UnityEngine.ResourceManagement.ResourceManager.CreateOperation[T] (System.Type actualType, System.Int32 typeHash, System.Int32 operationHash, System.Action`1[T] …Run Code Online (Sandbox Code Playgroud)