6
Answers

Crop image on special color pixels

Photo of Bahar Jalali

Bahar Jalali

12y
3.1k
1
hi
i have some images contains some orange circles. i need to crop that circles from image... this circles location is not the same and is not stable.. their locations are variable... so i can't use ROI or use start point or end point or point of the center of that circle, because in every image it's in a different location and also there are a lot of images.

so how can i crop images on circles location? i think i must use colors for cropping but i don't know how,
thanks in advance

Answers (6)

0
Photo of Dipen Lama
NA 331 195.9k 18y
Use Place holder control to place the user control dynamically.
Here is some lines:

    string userControlName = "UserControl1.ascx"; 
 
    Control control1 ;
    control1 = LoadControl( userControlName );
    placeHolderControl1.Controls.Clear();
    placeHolderControl1.Controls.Add( control1 );