mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-19 09:28:32 +00:00
Dropped unnecessary simplify method
This commit is contained in:
parent
ca30b5c888
commit
14a67a473e
@ -57,7 +57,10 @@ namespace OSCADSharp.Utility.Images
|
|||||||
{
|
{
|
||||||
Bitmap img = new Bitmap(Image.FromFile(this.imagePath));
|
Bitmap img = new Bitmap(Image.FromFile(this.imagePath));
|
||||||
this.setColorArray(img);
|
this.setColorArray(img);
|
||||||
this.simplifyColors(img);
|
|
||||||
|
var simplifier = new ImageSimplifier(img.Width, img.Height, pixels);
|
||||||
|
simplifier.BasicResample(this.simplificationAmount);
|
||||||
|
|
||||||
this.htMapper = new HeightMapper(img.Width, img.Height, pixels, this.heightMode);
|
this.htMapper = new HeightMapper(img.Width, img.Height, pixels, this.heightMode);
|
||||||
this.htMapper.SetHeightMappings();
|
this.htMapper.SetHeightMappings();
|
||||||
|
|
||||||
@ -89,12 +92,6 @@ namespace OSCADSharp.Utility.Images
|
|||||||
return cubes;
|
return cubes;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void simplifyColors(Bitmap img)
|
|
||||||
{
|
|
||||||
var simplifier = new ImageSimplifier(img.Width, img.Height, pixels);
|
|
||||||
simplifier.BasicResample(this.simplificationAmount);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setColorArray(Bitmap img)
|
private void setColorArray(Bitmap img)
|
||||||
{
|
{
|
||||||
this.pixels = new Color[img.Width, img.Height];
|
this.pixels = new Color[img.Width, img.Height];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user