@Matthias Hi Matthias, I tried it out, and it seems like I can only modify the DBU value of the GDS file. Why does um_to_dbu have to be an integer? Can it support floating-point numbers instead?
Hi Matthias, Does DBU need to be obtained through a GDS file? For example (dbu = layout.dbu, um_to_dbu = pya.DCplxTrans(ly.dbu).inverted()), or can it be set arbitrarily in the code? If um_to_dbu can be set in the code, then pixel_size_dbu can be …
@Matthias It appears that the image rendered at 17.5 nm is closer to the actual physical area of 17.75 µm. Why is there such a significant discrepancy in the image rendered at 17.5/4 nm?
Hello, thank you for your response. I believe that rendering the same physical dimensions should result in the same output image area. Why do the images rendered at 17.5 nm and 17.5/4 nm differ? What settings are required to ensure that the output r…
Hi @Matthias
Thank you! I am just learning about and understanding the test units in the code, but I still cannot grasp the overall logic of the code. If I end up using it, I will comply with the GPL and open source the code.
Hi Matthias, thanks for your response. I'm trying to merge multiple layers with the following code, not sure if it's okay?
layers_to_render = [(10, 7), (11, 7)] all_shapes_to_render = pya.Region()for layer_tuple in layers_to_render: layer = ly.…
Thank you very much for your reply, I really appreciate it. If I need to render multiple layers, how can I do that? Perhaps the rasterized result can be converted to a grayscale image using the following code?
## Create a grayscale image arrayheigh…
Hi Matthias,
I would like to use the GDS rendering method to achieve high-precision graphic rendering based on physical dimensions (such as nm), which will be used for production or analysis purposes.
First, I want to render a specified area.
Sec…
"Like this function, pix_buffer = layoutview.get_pixels_with_options(width, height, 0, 0, 0, target), how can I use the rasterize function to obtain the rendering effect and array values for the target area, perhaps assuming a pixel size of 10 …
Thank you for your reply. However, I feel that this conversion process is a bit inefficient. Is it possible to directly convert the pixel buffer to an array without converting it to PNG data, or to avoid using the layoutview.get_pixels_with_options …
Thank you very much for your reply. I followed this link(https://www.klayout.de/forum/discussion/2246/clip-gds-to-image#latest)and implemented the process of converting a GDS file to a PNG image, but I do not need to save the image. How can I retu…
Traceback (most recent call last):
File "D:\gds_to_image\oas2png-new.py", line 453, in
main()
File "D:\gds_to_image\oas2png-new.py", line 440, in main
ProcessOneOASISFile( configdic, item, count )
File "D:\gds…