Questions tagged [layer]

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

If the question relates to Geographic Information Systems, consider whether the question is better suited to the GIS Stack Exchange.

2129 questions
7
votes
1 answer

Is there a way to have multiple layers in Processing?

Is there a way to have multiple layers in Processing ? Each layer would have its own setup/draw context.
gluon
  • 662
  • 1
  • 10
  • 18
7
votes
1 answer

How to export only the selected layers in photoshop as individual png images

I want to be able to export only the selected layers in photoshop as individual png images (that are trimmed properly). I see the script to do all the layers in a PSD, but I only want to do the layers I've selected. Is this possible?
Cam
  • 988
  • 1
  • 12
  • 25
7
votes
2 answers

How to extract the layers from an image (jpg,png,etc)

Given an image such as the CakePHP logo, how can this image be converted back into a PSD with the layers. As a human, I can easily work out how to translate this back to a PSD with layers. I can tell that the background is a circular shape with star…
Phil
  • 46,436
  • 33
  • 110
  • 175
6
votes
2 answers

Prism 4 WPF App - Solution Architecture with MVVM, Repositories and Unit of Work patterns implemented

I'm new to .Net and trying to learn things. I'm trying to develop a Prism4 WPF app with Visual Studio CSharp 2010 Express Edition, Prism v4, Unity as IoC, SQL Server CE as data store. I've studied a lot(?) and infuenced by this and this among…
yoursvsr
  • 121
  • 1
  • 10
6
votes
6 answers

Python PSD layers?

I need to write a Python program for loading a PSD photoshop image, which has multiple layers and spit out png files (one for each layer). Can you do that in Python? I've tried PIL, but there doesn't seem to be any method for accessing layers.…
Brock123
  • 183
  • 1
  • 3
  • 10
6
votes
2 answers

Converting tensorflow tf.contrib.layers.layer_norm to tf2.0

I would like to change the following code from tf1.0 to tf2.0 tf.contrib.layers.layer_norm( inputs=input_tensor, begin_norm_axis=-1, begin_params_axis=-1, scope=name) This code is taken from…
Siva Kumar
  • 71
  • 1
  • 4
6
votes
1 answer

AWS Python Layer Run Locally

How does one run locally a AWS Lambda Function with layers? My environment: Pycharm project for an AWS Lambda Function with Python 3.6 runtime. AWS Toolkit similar file/folder structure to create a Lambda Layer:…
devplayer
  • 587
  • 4
  • 12
6
votes
2 answers

What is the correct way to use Unit of Work/Repositories within the business layer?

Having built a small application using the Unit of Work/Repository pattern, I am struggling to understand how to use this properly within my business layer. My application has a a data access layer which can be either NHibernate or the Entity…
JMc
  • 971
  • 2
  • 17
  • 26
6
votes
2 answers

CGWindowListCopyWindowInfo, kCGWindowLayer and window level

The CGWindowLevel.h file defines the constants that are used to set the window level and the largest value that can be used as window level is 20. But, if you retrieve the window list using the call CGWindowListCopyWindowInfo, you can observe that…
spd
  • 2,114
  • 1
  • 29
  • 54
6
votes
1 answer

How to implement a custom layer wit multiple outputs in Keras?

Like stated in the title, I was wondering as to how to have the custom layer returning multiple tensors: out1, out2,...outn? I tried keras.backend.concatenate([out1, out2], axis = 1) But this does only work for tensors having the same length, and…
Tassou
  • 439
  • 1
  • 5
  • 16
6
votes
1 answer

How can I get a tensor output by a tensorflow.layer

I created a CNN model using higher level tensorflow layers, like conv1 = tf.layers.conv2d(...) maxpooling1 = tf.layers.max_pooling2d(...) conv2 = tf.layers.conv2d(...) maxpooling2 = tf.layers.max_pooling2d(...) flatten =…
Stephan Xie
  • 63
  • 1
  • 6
6
votes
1 answer

Slice tensor with variable indexes with Lambda Layer in Keras

Given a 3D input tensor (let's say (8,32,100)) I'm trying to implement a Lambda Layer in Keras to select a slice of such input vector. If I always wanted the same slice (e.g. all inputs between located between the position 2 and 4 in the second…
Aghie
  • 81
  • 1
  • 7
6
votes
1 answer

Should I pop after each binmode?

When using binmode, should I pop the layers from a possibly previous used binmode? #!/usr/bin/env perl use warnings; use 5.012; use autodie; open my $tty, '>:encoding(utf8)', '/dev/tty'; # ... close $tty; open $tty, '>:encoding(latin1)',…
sid_com
  • 24,137
  • 26
  • 96
  • 187
6
votes
0 answers

Keras custom layer with trainable weights

I need to create custom layer in Keras (1.1) that has trainable weights (the same shape as input). And I try to init the weights by random values. There is my 'mylayer.py' file: from keras import backend as K from keras.engine.topology import…
Kseniya
  • 95
  • 1
  • 9
6
votes
4 answers

UI Layer Abstraction

I have successfully worked with abstracting data layers and business layers. But recently a colleague mentioned about abstracting UI layer- in between the UI and the business layer. However I cannot get my head around it. I cannot visualize how this…
user52960
  • 253
  • 1
  • 3
  • 7