Generate synthetic images with controlled variation using the few sample images.

조회 수: 5 (최근 30일)
Anand Ra
Anand Ra 2022년 11월 17일
댓글: cr 2022년 11월 18일
Hello,
I have an image of a copper wire with defect. I am wondering if it possible to generate synthetic images using this sample image to help me serve as a data set for deep learning applications. Attached is the image for reference. As far as image variations are concerned I am flexible as long as it looks like something that I have attached - Basically a wire containing a defect.
Will be glad if any help can be offered. Thanks a lot.

답변 (1개)

cr
cr 2022년 11월 17일
If by defect you mean the circular feature on the left of the image, you can check its attributes (pixel colours) and copy them to random places in the image. However I'm doubtful if you would get a useful training set that way. Genereally when data set is sparse it's recommended to uuse traditional image processing techniques like blob-analysis, at least as a stop-gap measure until the data set is rich enough for training a neural net.
Regards.
  댓글 수: 2
Anand Ra
Anand Ra 2022년 11월 17일
Hey, Thanks for the response. Yes, I am referrign to the pin hole feature on the left of the image. I am super new to image processing/ ML, so wondering how to get strarted with your suggestion of copying the attribute and pasting them randomly. Thanks!
cr
cr 2022년 11월 18일
If this is a one time task it might be faster on a tool like Photoshop. In Matlab you can create masks using from a selected region. Check out drawcircle() and similar draw~ functions. In general, see ROI-based processing.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by