Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
1ae93c1d
Commit
1ae93c1d
authored
May 05, 2017
by
Debargha Mukherjee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve undefined saitize warning in ransac
BUG=aomedia:514 Change-Id: I97e20524b091169635395098efe234a7fd846bd9
parent
1aa07fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
av1/encoder/ransac.c
av1/encoder/ransac.c
+5
-2
No files found.
av1/encoder/ransac.c
View file @
1ae93c1d
...
...
@@ -776,7 +776,7 @@ static int ransac(const int *matched_points, int npoints,
if
(
current_motion
.
num_inliers
>=
worst_kept_motion
->
num_inliers
&&
current_motion
.
num_inliers
>
1
)
{
int
temp
;
double
fracinliers
,
pNoOutliers
,
mean_distance
;
double
fracinliers
,
pNoOutliers
,
mean_distance
,
dtemp
;
mean_distance
=
sum_distance
/
((
double
)
current_motion
.
num_inliers
);
current_motion
.
variance
=
sum_distance_squared
/
((
double
)
current_motion
.
num_inliers
-
1
.
0
)
-
...
...
@@ -796,7 +796,10 @@ static int ransac(const int *matched_points, int npoints,
pNoOutliers
=
1
-
pow
(
fracinliers
,
minpts
);
pNoOutliers
=
fmax
(
EPS
,
pNoOutliers
);
pNoOutliers
=
fmin
(
1
-
EPS
,
pNoOutliers
);
temp
=
(
int
)(
log
(
1
.
0
-
PROBABILITY_REQUIRED
)
/
log
(
pNoOutliers
));
dtemp
=
log
(
1
.
0
-
PROBABILITY_REQUIRED
)
/
log
(
pNoOutliers
);
temp
=
(
dtemp
>
(
double
)
INT32_MAX
)
?
INT32_MAX
:
dtemp
<
(
double
)
INT32_MIN
?
INT32_MIN
:
(
int
)
dtemp
;
if
(
temp
>
0
&&
temp
<
N
)
{
N
=
AOMMAX
(
temp
,
MIN_TRIALS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment