mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 13:38:33 +00:00
Shifted image processing helpers to Solids/Imported/Images
This commit is contained in:
parent
79c7828817
commit
5520b73a1d
@ -57,7 +57,7 @@ namespace OSCADSharp.ConsoleTests
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var img = ImportedImage.FromFile("sample.png", ImageImportMode.Polygonal).Scale(1, 1, Inches.Quarter + Inches.Eigth);
|
||||
var img = ImportedImage.FromFile("sample.png").Scale(1, 1, Inches.Quarter + Inches.Eigth);
|
||||
var imgPos = img.Position();
|
||||
var _base = new Cylinder(img.Bounds().Width + Inches.Quarter, Inches.Quarter) { Resolution = 100 };
|
||||
|
||||
|
||||
@ -48,14 +48,14 @@
|
||||
<Compile Include="OSCADObject.BaseTransform.cs" />
|
||||
<Compile Include="OSCADObject.BasicTransforms.cs" />
|
||||
<Compile Include="OSCADObject.Booleans.cs" />
|
||||
<Compile Include="Solids\Imported\AdjacentPixelMatrix.cs" />
|
||||
<Compile Include="Solids\Imported\CubistImageProcessor.cs" />
|
||||
<Compile Include="Solids\Imported\IImageProcessor.cs" />
|
||||
<Compile Include="Solids\Imported\ImageImportMode.cs" />
|
||||
<Compile Include="Solids\Imported\Images\AdjacentPixelMatrix.cs" />
|
||||
<Compile Include="Solids\Imported\Images\CubistImageProcessor.cs" />
|
||||
<Compile Include="Solids\Imported\Images\IImageProcessor.cs" />
|
||||
<Compile Include="Solids\Imported\Images\ImageImportMode.cs" />
|
||||
<Compile Include="Solids\Imported\ImportedImage.cs" />
|
||||
<Compile Include="Solids\Imported\ImportedModel.cs" />
|
||||
<Compile Include="Solids\Imported\NeighboringPointFinder.cs" />
|
||||
<Compile Include="Solids\Imported\PolygonalImageProcessor.cs" />
|
||||
<Compile Include="Solids\Imported\Images\NeighboringPointFinder.cs" />
|
||||
<Compile Include="Solids\Imported\Images\PolygonalImageProcessor.cs" />
|
||||
<Compile Include="Utility\Dependencies.cs" />
|
||||
<Compile Include="IO\DefaultFileInvoker.cs" />
|
||||
<Compile Include="IO\DefaultFileWriter.cs" />
|
||||
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
/// <summary>
|
||||
/// A matrix for finding neighbors in regions of pixels
|
||||
@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
/// <summary>
|
||||
/// Processes a bitmap image by treating contiguous same-color regions as cubes
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
internal interface IImageProcessor
|
||||
{
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
/// <summary>
|
||||
/// Ways to process imported images into 3D models
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper class to reuse code in image processing for finding adjacent pixels
|
||||
@ -7,7 +7,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using OSCADSharp.DataBinding;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
namespace OSCADSharp.Solids.Imported.Images
|
||||
{
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System.Drawing;
|
||||
using OSCADSharp.Solids.Imported.Images;
|
||||
|
||||
namespace OSCADSharp.Solids.Imported
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user