Lines Matching defs:layer

10  * layer is in focus.
15 * For a layer n, its depth interval is (@code [layerInfo[n].backDepth,
21 * (@code focusLayer) is the index of the layer that is in focus, that is, has
72 * The layer in which the focal depth belongs to. <b> For this layer, we
73 * assume that it is a single depth layer. That is, the front depth and back
96 public LayerInfo getLayerInfo(int layer) {
97 return layerInfo[layer];
101 * Returns the number of depths in a given layer.
103 * @param layer layer index
104 * @return the number of depth levels in the layer
106 public int getNumDepths(int layer) {
107 return layerInfo[layer].frontDepth - layerInfo[layer].backDepth + 1;
115 * Returns the depth given the layer and the relative depth in the layer.
117 * @param layer the layer index
119 * depth of a layer
122 public int getDepth(int layer, int relativeDepthInLayer) {
123 return layerInfo[layer].backDepth + relativeDepthInLayer;
145 // Finds the front and back depth levels for the focus layer.
161 // Sets the max variation of blur disk radius in a blending layer.
180 s += "focus layer: " + focusLayer + "\n";
188 s += "layer " + n + " disparity " + d + " disk radius "
259 * Sets up {@code focusLayer} such that each layer contains only a single
260 * depth, except that the focal layer contains frontFocalDepth and
265 * @param frontFocalDepth the front depth of focal layer.
266 * @param backFocalDepth the back depth of focal layer.
274 // Pushes single depth layers in front of the focal layer to layerInfo.
275 int layer = 0;
276 for (int depth = MAX_DEPTH; depth > frontFocalDepth; --depth, ++layer) {
277 layerInfo[layer] = new LayerInfo(depth);
280 // Pushes focal layer to layerInfo.
281 focusLayer = layer;
282 layerInfo[layer] = new LayerInfo(frontFocalDepth, backFocalDepth);
283 ++layer;
285 // Pushes single depth layers behind the focal layer to layerInfo.
286 for (int depth = backFocalDepth - 1; depth >= MIN_DEPTH; --depth, ++layer) {
287 layerInfo[layer] = new LayerInfo(depth);
292 * Sets up {@code focusLayer} such that within each layer, the blur radius
299 * @param frontFocalDepth the front depth of focal layer.
300 * @param backFocalDepth the back depth of focal layer.
302 * layer.
307 // The blur radius difference in each layer is no larger than
313 // The blur radius difference in each layer is no larger than {@code
319 // depth layer.
325 // The merged layers is ordered from the front-most layer to the back-most
326 // layer.
329 // Finds the corresponding layer index m in layerInfoInFrontOfFocus,
336 // Finds the corresponding layer index m in layerInfoBehindFocus, which
346 * radius difference in each layer is no larger than
349 * @param backFocalDepth the back depth of focal layer.
350 * @param diskRadiusInterval max disk radius variation in each layer
364 // Moves to the first depth behind the focus depth and initializes a layer.
367 // Sets up the max radius threshold for the layer.
370 // Expands the layer to include depth levels so long as the blur disk
371 // radius within the layer is not larger than radiusThreshold.
377 // Expands the current layer by lowering its back depth.
381 // Generates a new single-depth layer.
392 * blur radius difference in each layer is no larger than
395 * @param frontFocalDepth the back depth of focal layer.
396 * @param diskRadiusInterval max disk radius variation in each layer
411 // layer.
414 // Sets up the max radius threshold for the layer.
417 // Expands the layer to include depth levels so long as the blur disk
418 // radius within the layer is not larger than radiusThreshold.
424 // Expands the current layer by increasing its front depth.
428 // Generates a new single-depth layer.