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

Trying to get CSV ready for keras model with tensorflow dataset

I do have a keras CNN model ready which expects [None,20,20,3] arrays as input. (20 is image size here...) On the other side I do have a CSV with 1200 (20*20*3) columns ready in my cloud storage. I want to write an ETL pipeline with tensorflow to…
ChriSquared
  • 499
  • 4
  • 6
1
vote
1 answer

Editing Hyperlinks for shapes

I have hundreds of shapes hyperlinked in numerous worksheets. The code below worked great to globally change the hyperlinks of all of these worksheets because I was only changing part of the hyperlink. How do I change these hyperlinks using a range…
needler
  • 13
  • 3
1
vote
1 answer

How do I draw an advanced shape with SFML in C++?

What is the best way to draw advanced custom shapes with a lot of roundings while using the SFML library in C++? I know how to draw shapes like rectangles or circles with the SFML library in C++. But if you want to make a custom shape you can make…
1
vote
0 answers

How to define complex shapes in SQL?

I'm working with a flight-trajectory dataset. Containing a lot of longitude and latitude points. I only want to extract, from a large database, the points that are relevant to my analysis, e.g. points withing the Netherlands airspace. Please see…
JPlanken
  • 55
  • 1
  • 9
1
vote
1 answer

Tensor flow error in shape input for a simple classifier

I've looked through existing q&a for this type of problem but couldn't quite work it out. When I fit my image classifier model using the VGG model, I get the the following error message: Error when checking input: expected input_1 to have 4…
Maniesha
  • 31
  • 4
1
vote
1 answer

Transparent Circle inside a White Rectangle

I'm working on a report project and would like to avoid making a separate image for each indicator color. Ideally, I like to put a transparent circle in a white rectangle. I have Snag-It available and general Windows tools. My plan is to put the…
Wes H
  • 4,186
  • 2
  • 13
  • 24
1
vote
1 answer

Is it possible to give another type of shape than square shape to a keras layer as input

I am coding an Autoencoder with keras. I have in input a symmetric matrix which I split into N sub-matrices in order to train my deep-learning framework. As this matrix is symmetric, I would like to give in input a lower triangular matrix instead.…
kabhel
  • 324
  • 3
  • 11
1
vote
2 answers

Frame an image: How to make a shape's dimensions fit around an image?

I am making a JavaFX based game that shoots drones using a spaceship to defend your base. I want to wrap a shape around an image to create a hitbox for it. This will allow the laser to cause damage to the drone whenever it touches the hitbox. It…
Compiler v2
  • 3,509
  • 10
  • 31
  • 55
1
vote
1 answer

Top left transparent triangle with canvas

I try to create a custom shape to accomplish this: But this is my result: I have created a custom view and I paint a rectangle border with a top left empty space (with a triangle shape). This is the custom class: class MatchTriangleImageView :…
Sami Issa
  • 1,695
  • 1
  • 18
  • 29
1
vote
1 answer

How do I read instructions in an infile and then write the function shapes to an outfile using parameters from the infile

So I just need some guidance as to how I could go about fixing this program, So I need to read a file titled "infile.txt" and inside the file are the instructions that describe the shape that should be drawn (A single uppercase char, namely…
Aux1e
  • 21
  • 3
1
vote
1 answer

labels column shape is inconsistent after splitting data into features and labels

I have a dataset as pandas dataframe that needs to be divided into feature set and labels. as of now, I am dividing the columns as below, features = df2.drop('case_of_injury_group', 1) labels = df2['case_of_injury_group'] but the shape of labels is…
Sbk3824
  • 1,229
  • 1
  • 14
  • 24
1
vote
1 answer

Changing Shape Quantity Based On Cell Value

I have a macro that produces a scaled shape based on user inputted dimensions on the "enter information" sheet. The macro is linked to a button and once the button is clicked the shape appears on the user chosen sheet (ws - ws5) and the shape…
Mark
  • 69
  • 1
  • 3
  • 9
1
vote
2 answers

Flex 3 - Diagonally draw text in a shape and adjust size

I'm trying to create the following component: Just for information, the blank space will contain a text control, and I'm creating a component that represents the black corner with the (i) icon and the "promotion" text. The part I'm having issues…
BS_C3
  • 385
  • 1
  • 6
  • 23
1
vote
1 answer

How to create a rectangle with centered circle shape and icon inside of it in Android?

I'm trying to create a shape visible above a BottomNavigationView (BottomSheetDialog peek). Any ideas on how to recreate it in the app? I've been trying with layer-list which looks fine on the preview but gets flattened while setting it up as a…
letelete
  • 63
  • 1
  • 10
1
vote
1 answer

Dragging shapes between JPanels

I'm working on a domino game and it's going pretty well, now I want to drag a domino tile from one JPanel to another, my dragging implementation works, it's just that I can't find how to drag shapes between two jpanels. Here's how it looks:
Jesse
  • 1,332
  • 2
  • 14
  • 25