Fix in convolution node and 4 new convolution node templates

This commit is contained in:
RodZill4 2019-12-03 23:10:48 +01:00
parent f05c8a408b
commit ebeb998333
5 changed files with 6 additions and 1 deletions

View File

@ -181,4 +181,5 @@ func _serialize(data: Dictionary) -> Dictionary:
return data
func _deserialize(data : Dictionary) -> void:
if data.has("convolution_params"):
set_convolution_params(data.convolution_params)

View File

@ -0,0 +1 @@
{"convolution_params":{"name":"Edge detect 1","input_type":"rgb","matrix":[[-1,-1,-1],[-1,8,-1],[-1,-1,-1]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}

View File

@ -0,0 +1 @@
{"convolution_params":{"name":"Edge detect 2","input_type":"rgb","matrix":[[0,-1,0],[-1,4,-1],[0,-1,0]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}

View File

@ -0,0 +1 @@
{"convolution_params":{"name":"Edge detect 3","input_type":"rgb","matrix":[[1,0,-1],[0,0,0],[-1,0,1]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}

View File

@ -0,0 +1 @@
{"convolution_params":{"name":"Sharpen","input_type":"rgb","matrix":[[0,-1,0],[-1,5,-1],[0,-1,0]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}