I hahe this segment of code:
private FoundContours SelectFromFoundSamples(FoundContours foundACContours, FoundContours foundFNContours, FoundContours foundBlurContours, FoundContours foundFilteredContours)
{
int? num = null;
int? a = null, b = null, c = null, d = 10;
int?[] numbers = new[] { foundACContours.Count, foundFNContours.Count, foundBlurContours.Count, foundFilteredContours.Count };
int? max = numbers.Max();
}
on this row:
int?[] numbers = new[] { foundACContours.Count, foundFNContours.Count, foundBlurContours.Count, foundFilteredContours.Count };
I get this error:
"Cannot implicitly convert type 'int?[]' to 'int[]'
Any idea how can i fix the error?
Thank you in advance.
Just change your statement
int?[] numbers = new[] { foundACContours.Count, foundFNContours.Count,
foundBlurContours.Count, foundFilteredContours.Count };
To
int?[] numbers = new int?[] { foundACContours.Count, foundFNContours.Count,
foundBlurContours.Count, foundFilteredContours.Count };
int?[] numbers = new int?[] { foundACContours.Count, foundFNContours.Count, foundBlurContours.Count, foundFilteredContours.Count };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With