public void SendRGBData() { var(data, width, samplesPerPixel) = ImageHelper.ReadByteTiff($"Sample Data/marbles.tif"); using (var client = new DistributedVisionClient("tcp://localhost:6001")) { var output = client.RequestProcess("unknownSn", 1, data); } }
private static StatisticsResults ProcessImage(string imageName) { var(data, width, samplesPerPixel) = ImageHelper.ReadByteTiff($"Sample Data/{imageName}"); using (var client = new DistributedVisionClient("tcp://localhost:6000")) { var output = client.RequestProcess("unknownSn", 1, data); return(output); } }
public void FeedTwoImages() { var(data1, width1, samplesPerPixel1) = ImageHelper.ReadByteTiff($"Sample Data/byte1.tif"); var(data2, width2, samplesPerPixel2) = ImageHelper.ReadByteTiff($"Sample Data/byte2.tif"); var inputData = new byte[data1.Length + data2.Length]; Array.Copy(data1, inputData, data1.Length); Array.Copy(data2, 0, inputData, data1.Length, data2.Length); using (var client = new DistributedVisionClient("tcp://localhost:6002")) { var output = client.RequestProcess("unknownSn", 1, inputData); } }
public void FeedFloatData() { var(data, width) = ImageHelper.ReadFloatTiff($"Sample Data/float.tif"); var byteArray = new byte[data.Length * 4]; Buffer.BlockCopy(data, 0, byteArray, 0, byteArray.Length); using (var client = new DistributedVisionClient("tcp://localhost:6003")) { var output = client.RequestProcess("unknownSn", 1, byteArray); } }