Skip to content

Commit a5f0977

Browse files
authored
Fixing namespace for image samples (#3208)
* fixing namespace for image samples * fix compile error
1 parent b291d95 commit a5f0977

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/ConvertToGrayScale.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.IO;
3+
using Microsoft.ML;
34
using Microsoft.ML.Data;
45

5-
namespace Microsoft.ML.Samples.Dynamic
6+
namespace Samples.Dynamic
67
{
78
public static class ConvertToGrayscale
89
{
@@ -16,7 +17,7 @@ public static void Example()
1617
// Downloading a few images, and an images.tsv file, which contains a list of the files from the dotnet/machinelearning/test/data/images/.
1718
// If you inspect the fileSystem, after running this line, an "images" folder will be created, containing 4 images, and a .tsv file
1819
// enumerating the images.
19-
var imagesDataFile = SamplesUtils.DatasetUtils.DownloadImages();
20+
var imagesDataFile = Microsoft.ML.SamplesUtils.DatasetUtils.DownloadImages();
2021

2122
// Preview of the content of the images.tsv file
2223
//

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/ConvertToImage.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using Microsoft.ML;
45
using Microsoft.ML.Data;
56

6-
namespace Microsoft.ML.Samples.Dynamic
7+
namespace Samples.Dynamic
78
{
89
public static class ConvertToImage
910
{

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/DnnFeaturizeImage.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System.IO;
22
using System.Linq;
3+
using Microsoft.ML;
34
using Microsoft.ML.Data;
45

5-
namespace Microsoft.ML.Samples.Dynamic
6+
namespace Samples.Dynamic
67
{
78
public static class DnnFeaturizeImage
89
{
@@ -15,7 +16,7 @@ public static void Example()
1516
// Downloading a few images, and an images.tsv file, which contains a list of the files from the dotnet/machinelearning/test/data/images/.
1617
// If you inspect the fileSystem, after running this line, an "images" folder will be created, containing 4 images, and a .tsv file
1718
// enumerating the images.
18-
var imagesDataFile = SamplesUtils.DatasetUtils.DownloadImages();
19+
var imagesDataFile = Microsoft.ML.SamplesUtils.DatasetUtils.DownloadImages();
1920

2021
// Preview of the content of the images.tsv file, which lists the images to operate on
2122
//

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/ExtractPixels.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using System;
22
using System.IO;
33
using System.Linq;
4+
using Microsoft.ML;
45
using Microsoft.ML.Data;
56

6-
namespace Microsoft.ML.Samples.Dynamic
7+
namespace Samples.Dynamic
78
{
89
public static class ExtractPixels
910
{
@@ -18,7 +19,7 @@ public static void Example()
1819
// Downloading a few images, and an images.tsv file, which contains a list of the files from the dotnet/machinelearning/test/data/images/.
1920
// If you inspect the fileSystem, after running this line, an "images" folder will be created, containing 4 images, and a .tsv file
2021
// enumerating the images.
21-
var imagesDataFile = SamplesUtils.DatasetUtils.DownloadImages();
22+
var imagesDataFile = Microsoft.ML.SamplesUtils.DatasetUtils.DownloadImages();
2223

2324
// Preview of the content of the images.tsv file
2425
//

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/LoadImages.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.IO;
3+
using Microsoft.ML;
34
using Microsoft.ML.Data;
45

5-
namespace Microsoft.ML.Samples.Dynamic
6+
namespace Samples.Dynamic
67
{
78
public static class LoadImages
89
{
@@ -16,7 +17,7 @@ public static void Example()
1617
// Downloading a few images, and an images.tsv file, which contains a list of the files from the dotnet/machinelearning/test/data/images/.
1718
// If you inspect the fileSystem, after running this line, an "images" folder will be created, containing 4 images, and a .tsv file
1819
// enumerating the images.
19-
var imagesDataFile = SamplesUtils.DatasetUtils.DownloadImages();
20+
var imagesDataFile = Microsoft.ML.SamplesUtils.DatasetUtils.DownloadImages();
2021

2122
// Preview of the content of the images.tsv file
2223
//

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/ResizeImages.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.IO;
3+
using Microsoft.ML;
34
using Microsoft.ML.Data;
45

5-
namespace Microsoft.ML.Samples.Dynamic
6+
namespace Samples.Dynamic
67
{
78
public static class ResizeImages
89
{
@@ -16,7 +17,7 @@ public static void Example()
1617
// Downloading a few images, and an images.tsv file, which contains a list of the files from the dotnet/machinelearning/test/data/images/.
1718
// If you inspect the fileSystem, after running this line, an "images" folder will be created, containing 4 images, and a .tsv file
1819
// enumerating the images.
19-
var imagesDataFile = SamplesUtils.DatasetUtils.DownloadImages();
20+
var imagesDataFile = Microsoft.ML.SamplesUtils.DatasetUtils.DownloadImages();
2021

2122
// Preview of the content of the images.tsv file
2223
//

0 commit comments

Comments
 (0)