@@ -268,7 +268,7 @@ private static async Task ProcessAllFiles(object workerParamsObject)
268
268
//Log.Write(istrue1 ? "1" : "0");
269
269
//Log.Write(istrue2 ? "1" : "0");
270
270
271
- if ( ( importSettings . useAutoOffset == true && importSettings . importMetadataOnly == false ) || ( importSettings . importIntensity == true && importSettings . importRGB == true && importSettings . packColors == true && importSettings . importMetadataOnly == false ) )
271
+ if ( ( importSettings . useAutoOffset == true && importSettings . importMetadataOnly == false ) || ( ( importSettings . importIntensity == true || importSettings . importClassification == true ) && importSettings . importRGB == true && importSettings . packColors == true && importSettings . importMetadataOnly == false ) )
272
272
{
273
273
int iterations = importSettings . offsetMode == "min" ? importSettings . maxFiles : 1 ; // 1 for legacy mode
274
274
@@ -767,7 +767,7 @@ static bool ParseFile(ImportSettings importSettings, int fileIndex, int? taskId,
767
767
// NOTE only works with formats that have bounds defined in header, otherwise need to loop whole file to get bounds?
768
768
769
769
// dont use these bounds, in this case
770
- if ( importSettings . useAutoOffset == true || ( importSettings . importIntensity == true && importSettings . importRGB == true && importSettings . packColors == true ) )
770
+ if ( importSettings . useAutoOffset == true || ( ( importSettings . importIntensity == true || importSettings . importClassification == true ) && importSettings . importRGB == true && importSettings . packColors == true ) )
771
771
{
772
772
// TODO add manual offset here still?
773
773
// we use global bounds or Y offset to fix negative Y
@@ -906,9 +906,8 @@ static bool ParseFile(ImportSettings importSettings, int fileIndex, int? taskId,
906
906
if ( importSettings . importIntensity == true )
907
907
{
908
908
//intensity = taskReader.GetIntensity();
909
-
909
+ // works here
910
910
intensity = taskReader . GetClassification ( ) ;
911
-
912
911
//if (i < 20000) Log.Write("int: " + intensity);
913
912
914
913
// if no rgb, then replace RGB with intensity
@@ -924,12 +923,12 @@ static bool ParseFile(ImportSettings importSettings, int fileIndex, int? taskId,
924
923
925
924
if ( importSettings . importClassification == true )
926
925
{
927
- // classification = taskReader.GetClassification();
928
- classification = taskReader . GetIntensity ( ) ;
926
+ classification = taskReader . GetClassification ( ) ;
927
+ // classification = taskReader.GetIntensity();
929
928
//if (classification<0 || classification>1) Log.Write("****: " + classification.ToString());
930
929
931
930
//if (i < 20000) Log.Write("class: " + classification.ToString());
932
-
931
+ //classification = 0;
933
932
//if (intensity.r < minInt)
934
933
//{
935
934
// minInt = intensity.r;
0 commit comments