我有30张不同叶子的图像,白色背景编号为1-30.我正在处理图像处理项目,用户可以在其中加载具有白色背景的新叶图像,程序会将其与数据库中的图像进行比较并显示最相似的图像.我是matlab的新手.
如何提取功能并将其以双重格式存储到数据库(mat文件)?
我正在尝试将 dat 文件的大文件转换为 UTF-8 以将它们加载到数据库中(这些文件上有日语字符)。最大文件为 17 GB,整个目录为 34 GB。下面是我的 PowerShell 脚本。
$files = Get-ChildItem 'E:\datamig_bkp_SCMDB\data\bigfiles' -Recurse |
? {Test-Path $_.FullName -PathType Leaf}
foreach ($file in $files) {
$content = Get-Content $file.FullName
$content | Out-File $file.FullName -Encoding UTF8
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Get-Content:抛出“System.OutOfMemoryException”类型的异常。
行:3 字符:16
+ $content = 获取内容$file.FullName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [获取内容],OutOfMemoryException
+ FullQualifiedErrorId : ProviderContentReadError,Microsoft.PowerShell.Commands.GetContentCommand