예제 #1
0
        /// <summary>
        /// Writes list of doubles into a png file.
        /// </summary>
        /// <param name="roidataset">The prototyp.</param>
        /// <param name="path">The path.</param>
        public void RoiWriterTool(Roi roidataset, string path)
        {
            var roiConverter = new RoiConverter();

            using (var bitmap = roiConverter.RoiToBitmap(roidataset))
            {
                var writepath = Path.GetFullPath(Path.Combine(path, roidataset.Name));

                bitmap.Save(writepath + ".png", ImageFormat.Png);
            }
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoiReader"/> class.
 /// </summary>
 /// <param name="path">The path.</param>
 public RoiReader(string path)
 {
     _roiConverter = new RoiConverter();
     _path         = path;
 }