#0018 修复图像处理界面参数区显示不全的问题;将参数及算子名称改为中文

This commit is contained in:
zhengxuan.zhang
2026-03-14 21:27:09 +08:00
parent 9695629a0a
commit d5f32bfadb
12 changed files with 61 additions and 20 deletions
@@ -12,6 +12,7 @@ namespace XplorePlane.Services
IReadOnlyList<string> GetAvailableProcessors();
IReadOnlyList<ProcessorParameter> GetProcessorParameters(string processorName);
ImageProcessorBase GetProcessor(string processorName);
string GetProcessorDisplayName(string processorName);
void RegisterProcessor(string name, ImageProcessorBase processor);
Task<BitmapSource> ProcessImageAsync(
@@ -78,6 +78,15 @@ namespace XplorePlane.Services
throw new ArgumentException($"Processor not registered or is 16-bit only: {processorName}", nameof(processorName));
}
public string GetProcessorDisplayName(string processorName)
{
if (_processorRegistry.TryGetValue(processorName, out var p))
return string.IsNullOrWhiteSpace(p.Name) ? processorName : p.Name;
if (_processorRegistry16.TryGetValue(processorName, out var p16))
return string.IsNullOrWhiteSpace(p16.Name) ? processorName : p16.Name;
return processorName;
}
public async Task<BitmapSource> ProcessImageAsync(
BitmapSource source,
string processorName,