hawkeye camera support(not tested)
This commit is contained in:
@@ -35,4 +35,20 @@ public class CannyOperation:BaseOperation
|
||||
Threshold1 = br.ReadInt32();
|
||||
Threshold2 = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void Save(Dictionary<string, object> dict)
|
||||
{
|
||||
base.Save(dict);
|
||||
dict[nameof(Threshold1)] = Threshold1;
|
||||
dict[nameof(Threshold2)] = Threshold2;
|
||||
}
|
||||
|
||||
public override void Load(Dictionary<string, object> dict)
|
||||
{
|
||||
base.Load(dict);
|
||||
if (dict.ContainsKey(nameof(Threshold1)))
|
||||
Threshold1 = Convert.ToInt32(dict[nameof(Threshold1)]);
|
||||
if (dict.ContainsKey(nameof(Threshold2)))
|
||||
Threshold2 = Convert.ToInt32(dict[nameof(Threshold2)]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user