Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SR
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
SR
Commits
6cd773ac
Commit
6cd773ac
authored
5 years ago
by
DIB Elian
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned getLF, getSR and getQueryCoordAffine
parent
ce342a1d
Branches
fix-vms-providers
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
getLF.m
+4
-2
4 additions, 2 deletions
getLF.m
getLF_parfor.m
+3
-1
3 additions, 1 deletion
getLF_parfor.m
getQueryCoordsAffine.m
+6
-2
6 additions, 2 deletions
getQueryCoordsAffine.m
getSR.m
+5
-3
5 additions, 3 deletions
getSR.m
getSR_parfor.m
+4
-2
4 additions, 2 deletions
getSR_parfor.m
with
22 additions
and
10 deletions
getLF.m
+
4
−
2
View file @
6cd773ac
...
@@ -48,7 +48,7 @@ for lab = 1:numLab
...
@@ -48,7 +48,7 @@ for lab = 1:numLab
% Compute super-ray view by view
% Compute super-ray view by view
for
v
=
1
:
numView
for
v
=
1
:
numView
msg
=
[
'Computing light field from super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
...
msg
=
[
'Computing light field from super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
...
'
\nV
iew '
,
num2str
(
v
),
'/'
,
num2str
(
numView
),
'\n'
];
'
(v
iew '
,
num2str
(
v
),
'/'
,
num2str
(
numView
),
'
)
\n'
];
progress
(
msg
);
progress
(
msg
);
SRXsub
=
SRX
{
lab
}(:,:,
1
,
v
);
SRXsub
=
SRX
{
lab
}(:,:,
1
,
v
);
...
@@ -115,7 +115,9 @@ for lab = 1:numLab
...
@@ -115,7 +115,9 @@ for lab = 1:numLab
end
end
end
end
end
end
fprintf
(
'\n\n'
);
progress
(
''
,
0
);
fprintf
(
'\n'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
...
This diff is collapsed.
Click to expand it.
getLF_parfor.m
+
3
−
1
View file @
6cd773ac
...
@@ -128,7 +128,9 @@ for lab = 1:numLab
...
@@ -128,7 +128,9 @@ for lab = 1:numLab
Color
(:,:,:,
v
)
=
Color_
;
Color
(:,:,:,
v
)
=
Color_
;
end
end
end
end
fprintf
(
'\n\n'
);
progress
(
''
,
0
);
fprintf
(
'\n'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
...
This diff is collapsed.
Click to expand it.
getQueryCoordsAffine.m
+
6
−
2
View file @
6cd773ac
...
@@ -35,9 +35,10 @@ s = cell(1,numLab);
...
@@ -35,9 +35,10 @@ s = cell(1,numLab);
[
SRXq
,
SRYq
,
SRDisp
]
=
deal
(
cell
(
1
,
numLab
));
[
SRXq
,
SRYq
,
SRDisp
]
=
deal
(
cell
(
1
,
numLab
));
%%
%%
progress
(
''
);
fprintf
(
'Super-ray computation...\n'
);
fprintf
(
'Super-ray computation...\n'
);
%%
progress
(
''
,
0
);
for
lab
=
1
:
numLab
for
lab
=
1
:
numLab
msg
=
[
'Initializing super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
'\n'
];
msg
=
[
'Initializing super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
'\n'
];
progress
(
msg
);
progress
(
msg
);
...
@@ -74,6 +75,9 @@ for lab = 1:numLab
...
@@ -74,6 +75,9 @@ for lab = 1:numLab
SRDisp
{
lab
}
=
ones
(
size
(
SRXq
{
lab
}))
.*
D_
;
SRDisp
{
lab
}
=
ones
(
size
(
SRXq
{
lab
}))
.*
D_
;
end
end
progress
(
''
,
0
);
fprintf
(
'\n'
);
p00
=
cellfun
(
@
(
x
)
x
.
p00
,
s
);
p00
=
cellfun
(
@
(
x
)
x
.
p00
,
s
);
p01
=
cellfun
(
@
(
x
)
x
.
p01
,
s
);
p01
=
cellfun
(
@
(
x
)
x
.
p01
,
s
);
p10
=
cellfun
(
@
(
x
)
x
.
p10
,
s
);
p10
=
cellfun
(
@
(
x
)
x
.
p10
,
s
);
...
...
This diff is collapsed.
Click to expand it.
getSR.m
+
5
−
3
View file @
6cd773ac
...
@@ -48,7 +48,7 @@ gv = arrayfun(@(x) 1:x,ImgSize,'UniformOutput',false);
...
@@ -48,7 +48,7 @@ gv = arrayfun(@(x) 1:x,ImgSize,'UniformOutput',false);
LFX
=
LFX
+
Offset
(
1
);
LFX
=
LFX
+
Offset
(
1
);
LFY
=
LFY
+
Offset
(
2
);
LFY
=
LFY
+
Offset
(
2
);
progress
(
''
);
progress
(
''
,
0
);
wgriddata
=
warning
(
'query'
,
'MATLAB:griddata:DuplicateDataPoints'
);
wgriddata
=
warning
(
'query'
,
'MATLAB:griddata:DuplicateDataPoints'
);
wscattered
=
warning
(
'query'
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
wscattered
=
warning
(
'query'
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
@@ -82,7 +82,7 @@ for lab = 1:numLab
...
@@ -82,7 +82,7 @@ for lab = 1:numLab
% Compute super-ray view by view
% Compute super-ray view by view
for
v
=
1
:
numView
for
v
=
1
:
numView
msg
=
[
'Computing super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
...
msg
=
[
'Computing super-ray '
,
num2str
(
lab
),
'/'
,
num2str
(
numLab
),
...
' from light field
\nV
iew '
,
num2str
(
v
),
'/'
,
num2str
(
numView
),
'\n'
];
' from light field
(v
iew '
,
num2str
(
v
),
'/'
,
num2str
(
numView
),
'
)
\n'
];
progress
(
msg
);
progress
(
msg
);
Xq
=
SRXq
{
lab
}(:,:,:,
v
);
Xq
=
SRXq
{
lab
}(:,:,:,
v
);
...
@@ -129,7 +129,9 @@ for lab = 1:numLab
...
@@ -129,7 +129,9 @@ for lab = 1:numLab
SRLab
{
lab
}(:,:,:,
v
)
=
Lab
;
SRLab
{
lab
}(:,:,:,
v
)
=
Lab
;
end
end
end
end
fprintf
(
'\n\n'
);
progress
(
''
,
0
);
fprintf
(
'\n'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
...
This diff is collapsed.
Click to expand it.
getSR_parfor.m
+
4
−
2
View file @
6cd773ac
...
@@ -48,7 +48,7 @@ gv = arrayfun(@(x) 1:x,ImgSize,'UniformOutput',false);
...
@@ -48,7 +48,7 @@ gv = arrayfun(@(x) 1:x,ImgSize,'UniformOutput',false);
LFX
=
LFX
+
Offset
(
1
);
LFX
=
LFX
+
Offset
(
1
);
LFY
=
LFY
+
Offset
(
2
);
LFY
=
LFY
+
Offset
(
2
);
progress
(
''
);
progress
(
''
,
0
);
wgriddata
=
warning
(
'query'
,
'MATLAB:griddata:DuplicateDataPoints'
);
wgriddata
=
warning
(
'query'
,
'MATLAB:griddata:DuplicateDataPoints'
);
wscattered
=
warning
(
'query'
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
wscattered
=
warning
(
'query'
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
@@ -137,7 +137,9 @@ for lab = 1:numLab
...
@@ -137,7 +137,9 @@ for lab = 1:numLab
SRLab
{
lab
}
=
SRLab_lab
;
SRLab
{
lab
}
=
SRLab_lab
;
SRDisp
{
lab
}
=
SRDisp_lab
;
SRDisp
{
lab
}
=
SRDisp_lab
;
end
end
fprintf
(
'\n\n'
);
progress
(
''
,
0
);
fprintf
(
'\n'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wgriddata
.
state
,
'MATLAB:griddata:DuplicateDataPoints'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
warning
(
wscattered
.
state
,
'MATLAB:scatteredInterpolant:DupPtsAvValuesWarnId'
);
...
...
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