Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yuv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
LightFieldCodingLibrary
yuv
Commits
49cd3954
Commit
49cd3954
authored
5 years ago
by
Elian Dib
Browse files
Options
Downloads
Patches
Plain Diff
Added interpMeth parameter in read
parent
963588b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
read.m
+8
-1
8 additions, 1 deletion
read.m
with
8 additions
and
1 deletion
read.m
+
8
−
1
View file @
49cd3954
...
...
@@ -53,12 +53,14 @@ fullRange = true;
p
.
addParameter
(
'inColSpace'
,
'rgb'
,
@
ischar
);
p
.
addParameter
(
'outColSpace'
,
'ycbcr'
,
@
ischar
);
p
.
addParameter
(
'fullRange'
,
fullRange
,
@
islogical
);
p
.
addParameter
(
'interpMeth'
,
'nearest'
,
@
ischar
);
p
.
parse
(
varargin
{:});
inColSpace
=
p
.
Results
.
inColSpace
;
outColSpace
=
p
.
Results
.
outColSpace
;
fullRange
=
p
.
Results
.
fullRange
;
interpMeth
=
p
.
Results
.
interpMeth
;
precision
=
[
'uint'
,
num2str
(
max
(
8
,
2
^
ceil
(
log2
(
bitDepth
))))];
...
...
@@ -87,8 +89,13 @@ switch subSamp
xgv
=
1.5
:
2
:
imgSize
(
1
);
ygv
=
1
:
2
:
imgSize
(
2
);
end
% Add small offset to ensure correct nearest neighbour interpolation
if
any
(
strcmp
(
subSamp
,{
'422'
,
'420'
}))
&&
strcmp
(
interpMeth
,
'nearest'
)
ygv
=
ygv
+
0.25
;
end
subImgSize
=
[
numel
(
xgv
),
numel
(
ygv
)];
UV
=
griddedInterpolant
({
xgv
,
ygv
},
zeros
(
subImgSize
),
'linear'
,
'nearest'
);
UV
=
griddedInterpolant
({
xgv
,
ygv
},
zeros
(
subImgSize
),
interpMeth
,
'nearest'
);
%% Read frames iteratively
%filename = yuv.params2name(filename,imgSize,imgRes,subSamp,bitDepth);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment