fork(2) download
  1. function Classify()
  2. I = imread('A.bmp');
  3.  
  4. I=imcomplement(I);
  5. subplot(221), imshow(I), title('org')
  6. BE = bwmorph(I,'remove');
  7. subplot(222), imshow(BE), title('boundary')
  8.  
  9. bwconncomp(BE)
  10. se = strel('rectangle',[60,60]);
  11. rectangles=imopen(I,se);
  12. BE=(I-rectangles);
  13.  
  14. se2=strel('rectangle',[40,40]);
  15. BE=imerode(BE,se2);
  16. subplot(223), imshow(BE), title('erosion')
  17. bwconncomp(BE)
  18.  
  19.  
  20.  
  21.  
  22. end
  23.  
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,0): error CS1525: Unexpected symbol `function'
prog.cs(2,14): error CS1012: Too many characters in character literal
prog.cs(5,34): error CS1012: Too many characters in character literal
prog.cs(6,18): error CS1012: Too many characters in character literal
prog.cs(7,35): error CS1012: Too many characters in character literal
prog.cs(10,14): error CS1012: Too many characters in character literal
prog.cs(10,26): warning CS0658: `value' is invalid attribute target. All attributes in this attribute section will be ignored
prog.cs(14,13): error CS1012: Too many characters in character literal
prog.cs(16,35): error CS1012: Too many characters in character literal
prog.cs(24,1): error CS8025: Parsing error
Compilation failed: 9 error(s), 1 warnings
stdout
Standard output is empty