示例#1
0
    public override string GetParameters()
    {
        StringBuilder sb = new StringBuilder();

        sb.AppendLine(string.Format("readerType = {0}", readerType.ToString()));
        sb.AppendLine(string.Format("file = {0}", file));
        sb.AppendLine(string.Format("randomize = {0}", randomize?.ToString() ?? "Auto"));
        sb.AppendLine("features=[");
        sb.AppendLine(string.Format("\twidth = {0}", width));
        sb.AppendLine(string.Format("\theight = {0}", height));
        sb.AppendLine(string.Format("\tchannel = {0}", channel));
        sb.AppendLine(string.Format("\tcropType = {0}", cropType.ToString()));
        sb.AppendLine(string.Format("\thflip = {0}", hflip));
        sb.AppendLine(string.Format("\tsideRatio = {0}", sideRatio));
        sb.AppendLine(string.Format("\tjitterType = {0}", jitterType.ToString()));
        sb.AppendLine(string.Format("\tinterpolations = {0}", interpolations.ToString()));
        sb.AppendLine(string.Format("\taspectRatio = {0}", aspectRatio));
        sb.AppendLine(string.Format("\tbrightnessRadius = {0}", brightnessRadius));
        sb.AppendLine(string.Format("\tcontrastRadius = {0}", contrastRadius));
        sb.AppendLine(string.Format("\tsaturationRadius = {0}", saturationRadius));
        sb.AppendLine(string.Format("\tintensityFile = {0}", intensityFile));
        sb.AppendLine(string.Format("\tintensityStdDev = {0}", intensityStdDev));
        sb.AppendLine(string.Format("\tmeanFile = {0}", meanFile));
        sb.AppendLine("]");
        sb.AppendLine("labels = [");
        sb.AppendLine(string.Format("labelDim = {0}", labelDim));
        return(sb.ToString());
    }
示例#2
0
 public static XmlReader CreateReader(ReaderType readerType, XmlReader underlyingReader, bool enableNormalization)
 {
     return(CreateReader(readerType.ToString(), underlyingReader, enableNormalization, null, null));
 }
示例#3
0
 //This API attaches a default validation event handler.
 public static XmlReader CreateReader(ReaderType readerType, string url, bool enableNormalization)
 {
     return(CreateReader(readerType.ToString(), url, enableNormalization, null, null));
 }
示例#4
0
 //This API doesn't attach a default validation event handler.
 public static XmlReader CreateReader(ReaderType readerType, Stream stream, string baseUri, bool enableNormalization)
 {
     return(CreateReader(readerType.ToString(), stream, baseUri, enableNormalization, null, null, false));
 }
示例#5
0
 public static XmlReader CreateReader(ReaderType readerType, XmlReader underlyingReader, bool enableNormalization)
 {
     return CreateReader(readerType.ToString(), underlyingReader, enableNormalization, null, null);
 }
示例#6
0
 //This API attaches a default validation event handler.
 public static XmlReader CreateReader(ReaderType readerType, string url, bool enableNormalization)
 {
     return CreateReader(readerType.ToString(), url, enableNormalization, null, null);
 }
示例#7
0
 //This API doesnt attach a default validation event handler.
 public static XmlReader CreateReader(ReaderType readerType, Stream stream, string baseUri, bool enableNormalization)
 {
     return CreateReader(readerType.ToString(), stream, baseUri, enableNormalization, null, null, false);
 }