Questions tagged [shapes]

Questions related to drawing or defining shapes.

A shape is a geometric representation of some object, defined by the external boundaries which encompass the object.

For 2-D shapes like the circle, , and rectangle their shape is constructed of lines connected together.

3-D shapes are defined by a 2-D which envelopes the interior 3-D volume.

4362 questions
1
vote
1 answer

Draw Shape Based on Cell Values

All, I have code that creates a shape based on based on inputted values in the macro itself. I am wanting to have the values of shape type, width, and height specified by the user (location of shape on the sheet is indifferent to me right now). …
Mark
  • 69
  • 1
  • 3
  • 9
1
vote
1 answer

Numpy ndarray with different shapes for learning model in Keras

I have a list of numpy array with different shapes. I try to convert this list into a numpy array to create a batch sample for Keras. On output I want an array with the shapes (batch_size, ?, 20) where '?' is the variable dimension. I try this: a =…
Paulo
  • 62
  • 8
1
vote
1 answer

Creating Android XML shape with rectangle and triangle as in figure for Background

I want to create a drawable android XML Background as shown in the Figure could anybody please tell me how to do this. Thank You!! The Picture of Background is enclosed below
1
vote
0 answers

cant use variable image input resolution in frozen graph with tf.reshape

My frozen graph in tensorflow is throwing an error if I use a different image resolution than the one used for training at the "tf.reshape" command. My network is fully convolutional and before having to use the tf.reshape command I was able to use…
JohnVS
  • 113
  • 1
  • 6
1
vote
1 answer

Identify Shapes with Matlab

I created some MATLAB code, that find somes shapes in an image using regionpros and bwbounaries functions. I have: STATS = regionprops(L, 'all'); and from STATS I could easily find all my shapes Area…
Johnathan Fr.
  • 11
  • 1
  • 3
1
vote
0 answers

shapes don't show up on window

shapes in pygame don't show up on my window. i have tried updating the display and writing the code for the object in different ways but no progress. #COLOURS red = 255, 0, 0 green = (0, 255, 0) blue = (0, 0, 255) black = (0, 0, 0) white = (255,…
BOBTHEBUILDER
  • 345
  • 1
  • 4
  • 20
1
vote
1 answer

Subtracting an inner radius/portion of an arc to achieve a ring style progress bar

I am trying to draw a ring/partial ring using arc's. But I need the middle of the partial ring/ring to be transparent and show whats behind it. Since I am using an arc and spinning it, is there a way to subtract away the inner portion of each arc…
Thornack
  • 51
  • 1
  • 6
1
vote
2 answers

Calculating superellipse shape in dart

I want to create a superellipse shape in Flutter for a widget. I found an article about creating superellipses written in python and java, but i can't quite get the code to work. Link to article class SuperEllipse extends ShapeBorder { final…
1
vote
1 answer

Tensorflow: the number of rows and columns of tensor

In tensorflow, how can I derive the number of rows and columns of tensor? If there is a weight tensor as follows: W1 = tf.get_variable("W1", shape=[784, 512], initializer=tf.contrib.layers.xavier_initializer()) I hope to know…
Hyunseung Kim
  • 493
  • 1
  • 6
  • 17
1
vote
0 answers

Using Linear Regression to calculate centroid position of coordinate system

I am still quite new to code and I am hoping this is a quick fix. So far I have been able to use linear regression to find the x centroid and y centroid position of 5 sided shapes separately. As found out, the x and y centroids vary with each other…
JKerr
  • 11
  • 1
1
vote
2 answers

Error while trying to set custom shape as background of widget

I want to set the background of the standard TextView in an Android project to a custom shape. The shape is defined as follows:
ThaMe90
  • 4,196
  • 5
  • 39
  • 64
1
vote
0 answers

Ho can I suppress background circle overlapping the rectangle while doing minAreaRect detection in OpenCV?

The overlapping nozzle-tip behind the SMD device extends the minAreaRect by the overlap ... see WebCam snapshot with detected rectangle area. My current proccessing pipline is ...
lutzdd
  • 51
  • 5
1
vote
1 answer

Collision detection only working on top side of wall - Java

I have an assignment to create a 2D game, this game must use an abstract class Shape which is used to draw shapes. I decided to make a 2D platformer, but it's my first time doing something like this. I am trying to implement collision detection, and…
Sean2148
  • 365
  • 1
  • 3
  • 13
1
vote
2 answers

VHDL problem : array shape mismatch - no matching element

I'm new to VHDL and I have a problem I don't know how to resolve. The problem appears when I'm doing the simulation, but the code compiles correctly. Here is the problem : entity fir is port ( clock : in STD_LOGIC; reset : in STD_LOGIC; …
B. Clement
  • 298
  • 2
  • 13
1
vote
1 answer

p5.js rect() detailX and detailY usage?

The official documentation on the P5.js website does not include any descriptive usage of the two mentioned parameters - detailX and detailY (for the rect() function under "Shapes 2D primitives"). The only statements written for these two parameters…
bee5911
  • 516
  • 4
  • 9